Linux/Unix systems can print the current date and time using date command, Let us explore all options to print the current date and time in UTC and for a particular time zone.
How to print the system date?
Code:
date
Example:
Code:
$ date
Fri Jan  1 00:00:01 EST 2010

How to print the system date in UTC
Code:
date -u
can display the current UTC date and time. Let us see an example:
Code:
$ date -u
Fri Jan  1 05:13:05 UTC 2010

How to print bash date in a particular time zone
Code:
TZ=":America/Denver" date
Example:
Code:
$ TZ=":America/Denver" date
Thu Dec 31 22:13:48 MST 2009
Provide a supported Zone name,

How to get available/supported zone from within the system
Code:
/usr/share/zoneinfo
stores all supported time zone details,
Example:
Code:
$ ls  /usr/share/zoneinfo/America/
Adak            Coral_Harbour  Havana        Miquelon        Rosario
Anchorage      Cordoba        Hermosillo    Moncton        Santa_Isabel
Anguilla        Costa_Rica    Indiana        Monterrey      Santarem
Antigua        Creston        Indianapolis  Montevideo      Santiago
Araguaina      Cuiaba        Inuvik        Montreal        Santo_Domingo
Argentina      Curacao        Iqaluit        Montserrat      Sao_Paulo
Aruba          Danmarkshavn  Jamaica        Nassau          Scoresbysund
Asuncion        Dawson        Jujuy          New_York        Shiprock
Atikokan        Dawson_Creek  Juneau        Nipigon        Sitka
Most of the popular City time can be chosen this way

How to print date in YY-MM-DD format
Code:
$ date +'%y-%d-%m'
10-01-01
Use UPPERCASE Y for printing complete Year
Code:
$ date +'%Y-%d-%m'
2010-01-01