View Single Post
Posts: 3 | Thanked: 6 times | Joined on Nov 2012
#288
Originally Posted by Arf the Lab View Post
is it possible to get the date for these locations to display as DDMMYY instead of YYYYMMDD (i.e. "11/27/12" or "11-27-2012" instead of "2012-11-27"?) And display time as 12-hour format instead of 24-hour format?
Thanks.
Sure.
Code:
date +"%m/%d/%y %H:%M"
or
Code:
date +"%m-%d-%Y %H:%M"
for 12-hour format and other options check out man date
 

The Following 2 Users Say Thank You to deseven For This Useful Post: