Configure the Date

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

About this task

Log on as rwa to perform this procedure.

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 01222024163312
Switch:1#show clock
Mon Jan 22 16:33:12 2024 EDT

Variable Definitions

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

Variable

Value

MMddyyyyhhmmss

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