I ALWAYS struggle when it comes to the logic around taking and displaying different dates in different system/user formats (eg : US - MM/DD/YYYY or EU - DD/MM/YYYY)...
and, for the moment I'm struggling with this on my Android device... I must be missing something really simple but I just can't get my head around this...
Code: Select all
#TEST - START
local TEST
put the short system date into TEST
convert TEST from short system date to dateitems
answer the short system date & " = " & TEST
#TEST - STOP
When I run this on my Android (ICS) I get the Month and Date swapped... I also get the year reported as simply '14' (not the more usual 2014) : 9/27/14 = 2014,9,27,0,0,0,7 - Regardless of the date/time settings in the Config panel and the true/false of LC's 'useSystemDate' property...
So I then try :
Code: Select all
#TEST - START
put "01" into nD
put "02" into nM
put "2000" into nY
put nD & "/" & nM & "/" & nY into dDate
put dDate into sItems
put sItems into sItems
answer dDate & " = " & sItems
#TEST - STOP
On my Android I get : 01/02/2000 = 2000,1,2,0,0,0,1
What am I doing wrong please ? (I've tried setting the Android's Date/Time to be DD/MM/YYYY and / or MM/DD/YYYY - same results ) I'm doing something stupid.... what is it please....
Thanks peeps...