Hi Guys,
I need to find the day of week a particular date is in. Looking at the dictionary I found the command to convert field "fld_date" to dateItems with the 7th value the the numeric day I'm interested in.
The problem I have is that I want my app to cope with users entering dates in the format dd/mm/yyyy or mm/dd/yyyy. I plan to have a preferences file which will indicate the format of the date for a particular user which will be stored in in a global field. I know the convert command works when the date is entered in mm/dd/yyyy but fails when entered in the UK way. Apart from me writing some code to move the dd/mm around before I use the convert command, is there a quicker way to get the dateitems to evaluate if I know the user is entering in data in UK format or do I change the format of the date to mm/dd manually in a script and then convert.
Thanks
Jalz
converting a date to dateitems
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Re: converting a date to dateitems
Hi jalz,
not sure, but can't you use "system date" to convert to dateitems from?
Know what I mean?
-> convert tUserDate from system date to dateitems
Best
Klaus
not sure, but can't you use "system date" to convert to dateitems from?
Know what I mean?
-> convert tUserDate from system date to dateitems
Best
Klaus