Date calculation: what is the date 50 days ago from today?
Posted: Thu Jun 11, 2009 11:25 pm
What is the most efficient way to calculate the date (year, month, date) 50 days ago from today?
I can get the current date and convert it to second, and subtract 50*86400, then convert the seconds back
to date.
Any quicker and easier ways? existing functions to use?
I can get the current date and convert it to second, and subtract 50*86400, then convert the seconds back
to date.
Any quicker and easier ways? existing functions to use?