Click here to Skip to main content
15,889,909 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,
I created simple date control using 3 drop downs
what happen is if the culture was Hijri what i do is convert to Georgian date and then store it. Bus i noticed that when ever the user select a date over 12/29/1450 it crash down (wrong date format).

This is the method i am using
return DateTime.Parse(str, CultureInfo.CreateSpecificCulture("ar-sa").DateTimeFormat);
and I noticed that when you change your local regional culture to Arabic(Saudi Arabia), the last year is 1450.

Can anyone help with this?
Posted
Updated 16-Oct-10 21:45pm
v3

1 solution

I haven't tried it myself, but there is an article giving a culture aware calender and DateTimePicker, which you may be able to use instead of the three dropdowns etc.:
http://www.codeproject.com/KB/selection/CultureMonthCalendar.aspx[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900