Date and DateTools question

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Date and DateTools question

tom rhodes
Hey all,

just a quickie (i hope).

if i get today's date using and using DateTools.hours i make a date object of 2 days in length, can i subtract the two days from today's date to get a date object containing the date of two days before today?

i don't want to have to work it out by myself by subtracting 2 days from the day, then if it's less than 0, subtract 1 from the month etcetera...



haXe - an open source web programming language