![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| help with date command | netrom | Shell Programming and Scripting | 9 | 08-05-2008 10:37 PM |
| Help with a Date Command !!! | kumarsaravana_s | UNIX for Dummies Questions & Answers | 1 | 05-28-2007 12:33 PM |
| Date Command -1 | greengrass | UNIX for Dummies Questions & Answers | 4 | 01-24-2007 02:18 PM |
| date command | vshyam4949 | UNIX for Dummies Questions & Answers | 2 | 01-30-2006 07:40 AM |
| Date Command | saldana | UNIX for Dummies Questions & Answers | 2 | 02-05-2004 07:50 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
date command help
Hi,
I have the following date command for getting the below result: `date '+%m%d%y'` Result: 043008 Can someone help me make change in command so that i have the result as 04302008 Sorry that its a very easy for experts here , but i am a newbie. Please help Thanks, Sandeep |
| Forum Sponsor | ||
|
|
|
|||
|
No, it is not.
%Y = four digit year %y = two digit year Sit down, open the man page for date. Scroll down until you hit the format section. There you will find how to change date output. This page is also important because other functions in languages like perl and C use the same format control. |