mmcc
mmcc

Reputation: 37

jQuery ui datepicker('getDate') value localization

How to locale the $('#datepicker').datepicker('getDate') value ? e.g. alert the chinese date like (2012年9月10日)

here is my code : http://jsfiddle.net/8JyDB/1/

Upvotes: 2

Views: 334

Answers (2)

Suriyamoorthy Baskaran
Suriyamoorthy Baskaran

Reputation: 635

Use jQuery i18n plugin. Refer the following links to get localization done.

http://codingwithcoffee.com/files/trunk/index.html

http://keith-wood.name/localisation.html

Hope this helps

Upvotes: 1

NimChimpsky
NimChimpsky

Reputation: 47310

http://jqueryui.com/demos/datepicker/#localization

$( "#datepicker" ).datepicker( $.datepicker.regional[ "zh-CN" ] );

Upvotes: 0

Related Questions