Next
Update
Prev
Default

You can create many date formats easily, including international formats using the formatString attribute in the <DateFormatter> element tag.

This sample chart is to show how to display the X-axis label with the data format, YYYY-MM-DD.

...
<DateFormatter id="dateFmt" formatString="YYYY-MM-DD" />
...					
<Line2DChart ...  >
'''
  <horizontalAxis>
    <DateTimeAxis ... formatter="{dateFmt}" ... > 
  </horizontalAxis>
...
</Line2DChart>
...

<DateFormatter>

formatString The formatString attribute is to set a formatted date and time string. The default format is "YYYY/MM/DD HH:NN:SS".

Y │ Year │ YY=05,YYYY=2005
M │ Month │ M=7,MM=07,MMM=Jul
D │ Day │ D=4,DD=04
H │ Hour │ H=1,HH=01
N │ Minute │ N=1,NN=01
S │ Second │ SS=30

© 2017 KoolChart. All rights reserved.