PDA

View Full Version : Date format/culture



MrMp3
Mar 18, 2008, 12:53 PM
Hello, someone know hot to change the format to "dd/MM/yyyy" or some spanish culture like "es-AR".
Because if I set on page.load:


DateTimePicker.format="dd/MM/yyyy"
DateTimePicker.SelectedDate=DateTime.Now 'DateTime.Now is "18/03/2008"


I have something like "06/03/09" (03 june) why?????

The same happend if i select a date later than day 12.

Please help!!!
Sorry for my English!!

Thanks
Ariel

geoffrey.mcgill
Mar 18, 2008, 7:06 PM
Hi MrMp3,

Does the following forum post help solve the problem?

http://forums.ext.net/showthread.php?threadid=98-5-1.aspx?Highlight=format

MrMp3
Mar 19, 2008, 10:26 AM
Thanks for your reply!

I can't understand the solution that alexb did:



"dd.MM.yyyy".Replace("dd", "d").Replace("MM", "m").Replace("yyyy", "Y")


:(

Thanks again