![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| convert date format YYYYMMDD to MM/DD/YYYY | nasirgondal | Shell Programming and Scripting | 7 | 08-07-2008 06:06 AM |
| Yesterday in i.e. May 09 and 05/09 format | Daniel Gate | Shell Programming and Scripting | 3 | 05-20-2008 01:59 PM |
| get yesterday in yyyymmdd format | aaron_fong | Shell Programming and Scripting | 13 | 03-14-2008 12:14 PM |
| How can i get the yesterday's date in YYYYMMDD format | prasadsr | HP-UX | 4 | 01-19-2007 06:52 AM |
| Date increment in the format "YYYYMMDD" | ganapati | Shell Programming and Scripting | 4 | 08-02-2006 08:45 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
I would like to know how I could get a yesterday date in yyyymmdd e.g. today is 20011109, and I would like to get 20011108. Thank you!
__________________
Thanks for helping hk_newbie! |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
Try this link then.... and just rearrange the variables then :-)
Need to go back 1 day using the date command
__________________
regards, -ghoti |
|
#3
|
|||
|
|||
|
YESTERDAY=`TZ=aaa24 date +%Y%m%d`
This will give you yesterdays date in the format you are requesting. |
|||
| Google The UNIX and Linux Forums |