Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Convert Date

Status
Not open for further replies.

dvknn

IS-IT--Management
Mar 11, 2003
94
0
0
US
Hi,
How can I get a date in DD-MMM-YYYY format?
for eg: 15-JUN-2004

- Thanks
 
dvknn,

man date

date +%d"-"%b"-"%Y

Hope this helps.

John
 
man date
you may try this:
date +%d-%b-%Y | tr [:lower:] [:upper:]
or this:
date +%d-%h-%Y | tr [:lower:] [:upper:]

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top