HI, I have DAY MONTH and YEAR and want to create the date string using Locale format, so it shows the correct separator character ('-' '.' '/' ...) for the language being used under AmigaOS4.
What I'm doing now is to "get" such date separator char by "parsing" 'loc_ShortDateFormat' (locale.h)
Is there a proper/nice way to get such date separator character, or to build the date string, something like:
struct Locale *ll = ILocale->OpenLocale(NULL); char DateSep = *(ll->loc_ShortDateFormat+IUtility->Strlen(ll->loc_ShortDateFormat)-3); IDOS->Printf("\n'%lc'\n", DateSep);
DateString_res = ILocale->BuildDateString(Locale, ShortDateMode, Day,Month,Year)
TIA