Last post Oct 09, 2008 07:47 AM by alexey_kay
Oct 07, 2008 04:33 AM|GSS122|LINK
By default, what is the standard culture for an ASP.NET web app?
What I want to do is allow users to enter a date in the following format: dd/mm/yyyy (including the backslashes). At the moment, with no culture set, the date format has to be mm-dd-yyyy. Or better still, it would be good to make the datetime culture independent
but then what happens if someone says 19/03/2000 or 03/19/2000? How does the system distinguish between which value is day and which value is month? As different cultures have the month first then the day, or vice versa.
What do I have to do to allow this? I'm studying culture in ASP.NET but it's such a complex topic.
Oct 07, 2008 07:11 AM|alexey_kay|LINK
Default date formatl depends on where you are - in US it will be mm/dd/yyyy, most other places dd/mm/yyyy. What you can do is set up the culture in your web.config file
in this case the culture is nz - dd/mm/yyyy
for a detailed list go to:
You can also set format for specific controls (like calendar) - let me know if you need more info.
Oct 08, 2008 05:04 PM|GSS122|LINK
Oct 09, 2008 07:47 AM|alexey_kay|LINK
yes, unless you've specified as culture="auto" in web.config (defualt), you do not need to set it up at each page.