Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Unix current date minus 3 months
Name: JGreenwood Date: February 17, 2003 at 13:12:14 Pacific OS: Windows NT CPU/Ram: UNIX
Comment:
How do I calculate today's date minus 3 months? For example, I need this date (date +%D) which is 02/17/03 minus 3 months. So, my result that I want should be 11/17/02. I am using ksh scripting.
Summary: Hi, Does anyone know of a UNIX command that will return the current date minus 1 hr? For example, if I the current date command returns "Fri Jan 10 14:08:15 EST 2003", what command would return "Fri J...
Summary: date +%j That returns today's Julian date, but I need to be able to convert the date from a file's timestamp to a Julian date. The timestamp of the file could be a date from 3 months ago. Is there a ...
Summary: Hi friends, I am executing a SQL through UNIX. I receive a date from SQL and store it in a variable in unix. The date is in (13-AUG-2009) format. But i need this to be in YYYYMMDD(20090813). Kindly...