Configuring the date

About this task

Configure the calendar time in the form of month, day, year, hour, minute, and second.

Procedure

  1. To enter User EXEC mode, log on to the switch.
  2. Configure the date:

    clock set <MMddyyyyhhmmss>

  3. Verify the configuration:

    show clock

Example

Configure the date and time, and then verify the configuration.

Switch:1>enable
Switch:1#clock set 19042014063030
Switch:1#show clock
Wed Mar 19 06:30:32 2014 EDT

Variable definitions

Use the data in the following table to use the clock set command.

Table 1. Variable definitions

Variable

Value

MMddyyyyhhmmss

Specifies the date and time in the format month, day, year, hour, minute, and second.