date
or
date +”Year: %Y, Month: %m, Day: %d”
Year: 2022, Month: 04, Day: 16
or
$ timedatectl
Local time: Sat 2022-04-16 13:06:00 GMT
Universal time: Sat 2022-04-16 13:06:00 UTZ
RTC time: Sat 2022-04-16 13:02:34
Time zone: GMT (GMT, +0000)
System clock synchronized: yes
NTP service: active
RTC in local TZ: yes
date
or
timedatectl
Open a terminal and type the following command:
date
Sat Nov 7 22:44:59 IST 2020
You can format the date as follows in dd-mm-yy format:
date +"%d-%m-%y"
07-11-2020