jquery - How to set global datetime format for javascript? -


i have several mvc pages , have second thing them in web.config:

<globalization culture="en-gb" uiculture="en-gb" /> 

(i need data dd/mm/yy)

it works datetime displaying on .cshtml first time but issue is:

i have datepicker , several date changes jquery. all of them working mm/dd/yyyy format. result, working incorrect dates.

for example: in database have date "2014-12-05" means 5 december 2014, datapicker , other understand 12 may (ckecked new date(datevalue)).

i have several date comparising (in client side validation) , because of issue, works wrong.

how can change global datetime format each javascript have?


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -