Week number

Shao Sean shaosean at unitz.ca
Mon Apr 15 15:02:01 EDT 2002


> on mouseUp
> put "2002,04,15"  into tmp
> convert tmp to dateitems
> answer tmp # gives : "2002,04,15"
> convert tmp to seconds
> answer tmp # gives : "2002,04,15"
> end mouseUp

the format you have chosen to use is in the dateItems format and i believe
you need to pass all 7 items..

put "2002,4,15,0,0,0,0" into tmp

also, if you're trying to convert non-US dates, try using the "system"
modifier

convert "15/4/2002" to dateItems -- US date
convert "4/15/2002" from short system date to dateItems -- non-US date




More information about the use-livecode mailing list