invalid date syntax with ajax calendar

I had Ajax calendar and when 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? …

via Asp.Net Developed Tutorials » Search Results » ajax:

invalid date syntax with ajax calendar

I had Ajax calendar and when 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/
…………………………………….

I had tried ajax calendar as you mentioned in your question its working, Could you please provide more details so that we identify the problem. Please refer following URL
http://www.asp.net/ajax/ajaxcontroltoolkit/samples/calendar/calendar.aspxthanks
…………………………………….

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

 

For more info: invalid date syntax with ajax calendar

Asp.Net Developed Tutorials » Search Results » ajax

invalid date syntax with ajax calendar

Share this post:

Related Posts

Leave a Comment