The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
convert date format to mysql date format in log file hazno Shell Programming and Scripting 3 03-03-2009 09:05 AM
How to format a date string ChicagoBlues UNIX for Dummies Questions & Answers 2 12-29-2008 04:16 PM
date issue-find prevoius date in a patricular format bsandeep_80 UNIX for Advanced & Expert Users 3 11-15-2007 08:42 PM
convert mmddyy date format to ccyyddd format?? Bhups Shell Programming and Scripting 2 09-27-2006 11:30 PM
How to redirect date with string command into txt file umen UNIX for Dummies Questions & Answers 2 09-15-2005 04:20 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-19-2009
islegmar islegmar is offline
Registered User
  
 

Join Date: Mar 2009
Posts: 10
Which is the STRING format in the date command?

Hi

According with the 'date' command documentation

-d, --date=STRING
display time described by STRING, not `now'

My question is, which are the possible values for STRING? I have been looking in the man pages but I didn't find anything?

After some googling I have found it can have special values as 'now', 'yesterday' or 'tomorrow'. If it represents a date, in which format? mm/dd/yyyy HH:MM:SS? yyyy-mm-dd HH:MM:SS? Where is this feature documented?

Thanks a lot

Isi
  #2 (permalink)  
Old 03-19-2009
radoulov's Avatar
radoulov radoulov is offline Forum Staff  
addict
  
 

Join Date: Jan 2007
Location: Варна, България / Milano, Italia
Posts: 2,847
Code:
zsh-4.3.9[radoulov]% date -d '4 FEB 1974' +'%A, %d %B %Y'
Monday, 04 February 1974
For more information:

Code:
man date|less -p'FORMAT '
You can find some examples in the info pages.
Closed Thread

Bookmarks

Tags
date

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 10:47 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0