On May 23, 2010, at 11:57 PM, Shane Stanley wrote: On 24/5/10 2:15 PM, "Michelle Steiner" < email@hidden> wrote: set foo to current date
set {month of foo, day of foo, year of foo, time of foo} to {October, 31,
2015, 0}
foo
That's still potentially going to get the wrong result. For example: set foo to current date set {month of foo, day of foo, year of foo, time of foo} to {October, 31, 2015, 0} log foo -- OK set {month of foo, day of foo, year of foo, time of foo} to {February, 8, 2015, 0} log foo -- not OK
Better yet, do this ...
set foo to current date set {day of foo, year of foo, time of foo, month of foo} to {31, 2015, 0, October} log foo -- OK set {day of foo, year of foo, time of foo, month of foo} to {8, 2015, 0, February} log foo -- OK
|