date

noun

say it: “DAYT” /ˈdeɪt/

A command that prints today's date and the time, in whatever layout you ask for.

What does date do?

date prints the date and time right now. Give it a + and a pattern, and it prints only the parts you ask for: %F is the year-month-day, %Y the year, %A the day's name and %B the month's. Inside $( ), it puts today's date into a name.

date +%F             # 2026-11-09
date '+%A, %B %d'    # Monday, November 09

In a sentence

  • “Sam used date +%F to put the day into his backup's name.”
  • “The morning script starts by printing the date, day name first.”

Level: Apprentice · More Unix terms at this level

Updated