UNIX Command Example: date - Display Date Information

UNIX Command Example: date - Display Date Information

Logon to UNIX command prompt then copy & past the bellow code to get some result:

   date
   date '+%F'
   date '+DATE: %m/%d/%y%nTime :%H:%M:%S'
   Here "date" is the command to Display Date Information.
   "date '+%F'" Display Date Information with full format i.e. 'YYYY-MM-DD'.
   "date '+DATE: %m/%d/%y%nTime :%H:%M:%S'" Display Date Information with Date part as format make new line then time part.
   If everything went well we should get some interesting result as follows:

UNIX Command Example: date - Display Date Information - Result in the UNIX command prompt

No comments:

Post a Comment

leave your comments here..