Erel
Great app software!
My app requires to convert dates of birth to age but I am struggling to parse the date of birth. It appears that the DateParse function is getting confused and I am also confused by the local formats.
In a UK locale with the settings of dd/mm/yyyy in the simulator,
DeviceDefaultDateFormat = d MMM yyyy
DateTime.DateFormat = MM/dd/yyyy
On my phone, set to UK and Date format of Day/MonthYear, I get:
DeviceDefaultDateFormat = MMM d,y
DateTime.DateFormat = MM/dd/yyyy
I really don't want to have to put code into my app to ask the user how they write their dates since I should be able to get this from the system. Can you explain why the default and the initial DateFormat are not the same and why neither correspond with the system settings?
Cheers
Allan Harkness
Great app software!
My app requires to convert dates of birth to age but I am struggling to parse the date of birth. It appears that the DateParse function is getting confused and I am also confused by the local formats.
In a UK locale with the settings of dd/mm/yyyy in the simulator,
DeviceDefaultDateFormat = d MMM yyyy
DateTime.DateFormat = MM/dd/yyyy
On my phone, set to UK and Date format of Day/MonthYear, I get:
DeviceDefaultDateFormat = MMM d,y
DateTime.DateFormat = MM/dd/yyyy
I really don't want to have to put code into my app to ask the user how they write their dates since I should be able to get this from the system. Can you explain why the default and the initial DateFormat are not the same and why neither correspond with the system settings?
Cheers
Allan Harkness