Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Improved change the date sort order in FolderOrg X' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Improved change the date sort order in FolderOrg X
Authored by: jolinwarren on Jun 01, '04 04:20:57AM
Here is a slightly cleaner way of using the international date format. Replace the code mentioned in the hint with:


   set mo to ((month of (current date)) as number) 
   if (mo < 10) then (set mo to "0" & (mo as string))
 
   set da to day of (current date)
   if (da < 10) then (set da to "0" & (da as string))

   set the_date to (year of (current date) as string) & "-" & (mo as string) & "-" & (da as string)

Cheers,
Jolin

[ Reply to This | # ]