| || |
locale aware date parsing
I want to convert a date string into an integer format for comparison and possible calculations. The test needs to work with different date formats, including US and UK (ie mm/dd/yy, and dd/mm/yy), and should be aware of the current date locale settings. The date_string_to_julian function only accepts US formatted date strings, which I find amazing.
Any ideas, apart from reading the locale settings from Windows and doing it myself!!