
A visit to any site or page from our web site via these links is done entirely at your own risk. provides links to third party sites only as a convenience and the inclusion of such links on our site does not imply 's endorsement of either the site, the organization operating such site, or any products or services of that organization. Note: We try to keep all external and related links up-to-date, however we are not responsible for the content of any site linked, further links on sites linked, or any changes or updates to the the information found on these sites.

To use the date in MM-DD-YYYY format, we can use the command date +%m-%d-%Y.File types | Find file converter | Software | Articles | FAQs | Privacy policy | About us | RSS We can use any of the formats as mentioned above (first column) for the date command as per requirement. Number of month (01 to 12 where 01 is January)ĭay of week (01 to 07 where 01 is Monday)ĭisplays week number of year where Sunday is the first day of the week (00 to 53) Name of the month in full form (e.g., January, February, etc.) Name of the month in short form (e.g., Jan, Feb, Mar, etc.) Name of the weekday in full form (e.g., Sunday, Monday, Tuesday, etc.) Name of a weekday in short form (e.g., Sun, Mon, Tue, Wed, Thu, Fri, Sat It is used to get the version information.įormat Option Codes Format Option with Codes It is used for getting the help of this command. It is used to print or set Coordinated Universal Time. It is used to print the last modification time of a file. It is used to generate an ISO 8601 compliant date/time string output. It is used to set the time set by the String value. It is used to display the time set by the String value. Following is a list of some common options and format codes for date command: There are different types of formatting codes or characters available, which can be used with the date options to generate the formatted output.
