The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
How to get Previous date in this format.
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
How to get Previous date in this format.
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
2
(
permalink
)
07-22-2008
BMDan
Registered User
Join Date: Jul 2008
Location: BlackMesh Managed Hosting
Posts: 66
How about
:
Code:
$ date -d "yesterday" +"%b %d %Y" Jul 21 2008
Last edited by BMDan; 07-23-2008 at
11:16 AM
.. Reason: Misread which month encoding you wanted
BMDan
View Public Profile
Visit BMDan's homepage!
Find all posts by BMDan
Find BMDan's past nominations received
Find BMDan's present nominations given