Computing.Net > Forums > Unix > Date 14days ago

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.

Date 14days ago

Reply to Message Icon

Name: kayarsenal
Date: September 4, 2006 at 05:21:46 Pacific
OS: XP
CPU/Ram: Intel/1GB
Product: HP
Comment:

Is there a way to know the exact date 14days ago? And have it in this format

YYYYMMDD.

I want to store this date in a variable, then touch it.

Example today is Sep 4th 20060904, 14days ago would be 20060821,then

touch -t 200608210001 t1 (I would still need to concat 0001 to the date)


Kayzone



Sponsored Link
Ads by Google

Response Number 1
Name: nails
Date: September 4, 2006 at 07:51:07 Pacific
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: Date 14days ago

Display date of three days ago www.computing.net/answers/unix/display-date-of-three-days-ago/5875.html

Date display from ls -l command www.computing.net/answers/unix/date-display-from-ls-l-command/5299.html

How to check date in unix www.computing.net/answers/unix/how-to-check-date-in-unix/3115.html