Date
Date[] gives the current local date and time in the form {year, month, day, hour, minute, second}.
Examples
Get the current date and time:
Date[]
(* {2024, 1, 15, 10, 30, 45} *)Please visit the official Wolfram Language Reference for more details.