The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


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 !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
changing the format of date in unix trichyselva UNIX for Dummies Questions & Answers 5 03-20-2008 09:07 AM
convert mmddyy date format to ccyyddd format?? Bhups Shell Programming and Scripting 2 09-27-2006 08:30 PM
changing the format of date nasirgondal Post Here to Contact Site Administrators and Moderators 1 06-07-2006 10:37 PM
Changing date format Sabari Nath S Shell Programming and Scripting 5 12-06-2005 11:38 PM
Changing the date format Dream86 Shell Programming and Scripting 10 06-08-2005 10:35 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-10-2006
Registered User
 

Join Date: Aug 2002
Location: London, England
Posts: 84
Changing the format of date

Hi,

There are lots of threads about how to manipulate the date using date +%m %.......

But how can I change the default format of the commad date?

$ date
Mon Apr 10 10:57:15 BST 2006


This would be on fedora and SunOs.

Cheers,

Neil
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 04-10-2006
blowtorch's Avatar
Supporter
 
Join Date: Dec 2004
Location: Singapore
Posts: 2,325
By editing the source and recompiling date?
Reply With Quote
  #3 (permalink)  
Old 04-10-2006
Registered User
 

Join Date: Apr 2006
Posts: 2
Talking this is not working

Please tellme how i can change the date format. Thanks
Reply With Quote
  #4 (permalink)  
Old 04-10-2006
Registered User
 

Join Date: Apr 2006
Posts: 2
Can u let me know once u figure it out?
Reply With Quote
  #5 (permalink)  
Old 04-11-2006
Registered User
 

Join Date: Feb 2006
Posts: 25
hi

This is one way i try to get Date in different formats.
DATESTAMP=`TZ=CST+24 date +%Y%m%d`
echo ${DATESTAMP}
put an alias for above in your .profile and use that.Hope it helps
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 09:36 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0