Hello every body,

It's work fine but how to work with 'Local date string'? 

alert(date.toLocaleDateString("ar-EG"));

// → "٢٠‏/١٢‏/٢٠١٢"var date = new Date(Date.UTC(2012, 11, 20, 3, 0, 0));




On Tuesday, June 26, 2012 at 5:32:48 PM UTC+2, asgallant wrote:
>
> You'll probably want that in two places:
>
> 1) a DateFormatter for the domain column:
> var dateFormatter = new google.visualization.DateFormat({pattern: 
> 'Y,M,d,H'});
> ​dateFormatter.format(data, 0); 
>
> 2) formatting the hAxis of the chart:
> ​chart.draw(data, {
>     hAxis: {
>         format: 'Y,M,d,H';
>     }
> });​ 
>
> The first insures that the dates appear correctly in the tooltips, while 
> the second makes sure the axis values are formatted correctly.
>
> On Tuesday, June 26, 2012 4:51:24 AM UTC-4, Antoine O wrote:
>>
>> OK i read all the docs you reffered to.
>> But i don't really see where i have to place the code defining the date 
>> format ( in my case {format:'Y,M,d,H'} )
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-visualization-api/c51b07d8-d74f-4bdb-a28f-c97588726ba9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to