开发者

invalid date syntax with ajax calendar

I had Ajax calendar and w开发者_如何学Pythonhen I selected from it it give me date as (07/12/2010)

and when I made space between the year and / it converted to (2010/07/12) and this invalid date so pleas what the error.


That's not a error is it? It sounds to me like the Ajax is just setting the date as a culture invariant. See this article on CodeProject


Try Specifying the date Format by using calendar Format property to "dd/MM/yyyy"

http://www.ajaxlines.com/ajax/stuff/article/aspnet_ajax_calendarextender_and_validation.php

Check out http://www.ama3.com/anytime/


If you are working from JS you would be better off working from its numeric (epoch) representation and then convert it to whatever format you want to use or use the js date api to achieve what you want.

https://developer.mozilla.org/en/JavaScript/Reference/global_objects/date

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜