Myworld
Myworld

Reputation: 1899

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.

Upvotes: 2

Views: 781

Answers (3)

Manatherin
Manatherin

Reputation: 4187

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

Upvotes: 3

Singleton
Singleton

Reputation: 3679

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/

Upvotes: 1

mpenet
mpenet

Reputation: 367

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

Upvotes: 0

Related Questions