Is there way to translate output of date function string in other language using jquery/js?
Actually I want to translate month string in other language(German, Spanish, French etc.).
Snap
For Example:
var D = jQuery.datepicker.formatDate('MM dd yy', new Date());
alert(D);
Output In English: June 21 2013
But I want date format output in other languages, like as:
French: juin 21 2013
German: Juni 21 2013
Spanish: junio 21 2013
Portuguese: junho 21 2013
Am unable to get how do I translate month name in other language?
I found solution in PHP( setlocale(LC_TIME, 'language_name'); strftime(format sting);
) but I need it in jQuery or JS?
So guys, you could suggest me a better solution.