Operating System - Linux
1751897 Members
5215 Online
108783 Solutions
New Discussion юеВ

how to change month/day from command line

 
SOLVED
Go to solution
Maaz
Valued Contributor

how to change month/day from command line

Dear Experts

how can I change day(sun, mon, etc) or month from the command line ? le me plz know the exact syntax.

Regards
Maaz
2 REPLIES 2
Jeroen Peereboom
Honored Contributor
Solution

Re: how to change month/day from command line

Maaz,

check the man page: man date
As an example, to set the current time and date to July 31, 11:16pm, type ``date 07312316''

date [-u|--utc|--universal] [MMDDhhmm[[CC]YY][.ss]]

JP
Maaz
Valued Contributor

Re: how to change month/day from command line

Thanks Dear Jeroen

Regards
Maaz