Dates?
Scott Rossi
scott at tactilemedia.com
Fri Apr 23 15:39:05 EDT 2004
Recently, "Kevin" wrote:
> How do I get a date in the format of MM/DD/YYYY?
One way:
function getFormattedDate
put the date into tDate
put char -4 to -1 of last item of the long date into tYear
set itemDel to "/"
put tYear into last item of tDate
set numberFormat to 00
add 0 to item 1 of tDate
add 0 to item 2 of tDate
return tDate
end getFormattedDate
I wonder if this will turn into another programming showdown... :-)
Regards,
Scott Rossi
Creative Director
Tactile Media, Development & Design
-----
E: scott at tactilemedia.com
W: http://www.tactilemedia.com
More information about the use-livecode
mailing list