Hi,
Im looking for a function that allows me to add or subtract days to a date, e.g. to return the date of 9 days ago.
Im sure that I have seen a date manipulation fn at some point, but I may just be going crazy ...(probably thinking about the dateadd MSSQL fn !)
Is the only way to do it manually (if so then how do I determine the last day of the previous month, i.e. 28/29/30/31st? and leap years etc ... ).
Or do I just subtract x days from the tm.tm_mday structure? (I doubt this is the solution)
Looking forward to hearing you ideas on this one.
Cheers
John (Sudmill)
Im looking for a function that allows me to add or subtract days to a date, e.g. to return the date of 9 days ago.
Im sure that I have seen a date manipulation fn at some point, but I may just be going crazy ...(probably thinking about the dateadd MSSQL fn !)
Is the only way to do it manually (if so then how do I determine the last day of the previous month, i.e. 28/29/30/31st? and leap years etc ... ).
Or do I just subtract x days from the tm.tm_mday structure? (I doubt this is the solution)
Looking forward to hearing you ideas on this one.
Cheers
John (Sudmill)