{"id":24419,"date":"2017-12-05T06:30:40","date_gmt":"2017-12-05T12:30:40","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=24419"},"modified":"2022-06-03T03:35:21","modified_gmt":"2022-06-03T08:35:21","slug":"use-the-date-command-in-linux","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/use-the-date-command-in-linux\/","title":{"rendered":"Linux Date Command"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div><p><img decoding=\"async\" class=\"alignnone size-full wp-image-24466\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/12\/How-to-Use-the-Date-Command-in-Linux.jpg\" alt=\"How to Use the Date Command in Linux\" width=\"1200\" height=\"600\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/12\/How-to-Use-the-Date-Command-in-Linux.jpg 1200w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/12\/How-to-Use-the-Date-Command-in-Linux-150x75.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/12\/How-to-Use-the-Date-Command-in-Linux-300x150.jpg 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/12\/How-to-Use-the-Date-Command-in-Linux-768x384.jpg 768w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/12\/How-to-Use-the-Date-Command-in-Linux-1024x512.jpg 1024w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/12\/How-to-Use-the-Date-Command-in-Linux-860x430.jpg 860w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/12\/How-to-Use-the-Date-Command-in-Linux-680x340.jpg 680w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/12\/How-to-Use-the-Date-Command-in-Linux-500x250.jpg 500w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/12\/How-to-Use-the-Date-Command-in-Linux-400x200.jpg 400w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/12\/How-to-Use-the-Date-Command-in-Linux-200x100.jpg 200w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/12\/How-to-Use-the-Date-Command-in-Linux-50x25.jpg 50w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" \/><\/p>\n<p>In this post, we will show you some examples on how to use the date command in Linux. The date command in Linux\u00a0 can be used to print or set the system date and time.\u00a0Using the Date Command in Linux its simple, just follow the examples and the syntax below. Let&#8217;s get started.<\/p>\n<p><!--more--><\/p>\n<p>By default when running the date command in Linux, without any arguments it will display the current system date and time:<\/p>\n<pre><code>date<\/code><\/pre>\n<pre><code>Sat  2 Dec 12:34:12 CST 2017<\/code><\/pre>\n<h4>Syntax<\/h4>\n<pre><code>Usage: date [OPTION]... [+FORMAT]\r\n  or:  date [-u|--utc|--universal] [MMDDhhmm[[CC]YY][.ss]]\r\nDisplay the current time in the given FORMAT, or set the system date.\r\n<\/code><\/pre>\n<h3>Date examples<\/h3>\n<p>The following examples will show you how to use the date command to find the date and time from a period of time in the past or future.<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-transparent ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69d49bcba753f\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"ez-toc-cssicon\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69d49bcba753f\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.rosehosting.com\/blog\/use-the-date-command-in-linux\/#1-Find-the-date-5-weeks-in-the-future\" >1. Find the date 5 weeks in the future<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.rosehosting.com\/blog\/use-the-date-command-in-linux\/#2-Find-the-date-5-weeks-and-4-days-in-the-future\" >2. Find the date 5 weeks and 4 days in the future<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.rosehosting.com\/blog\/use-the-date-command-in-linux\/#3-Get-the-next-month-date\" >3. Get the next month date<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.rosehosting.com\/blog\/use-the-date-command-in-linux\/#4-Get-the-last-sunday-date\" >4. Get the last sunday date<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.rosehosting.com\/blog\/use-the-date-command-in-linux\/#5-Display-the-date-in-yyyy-mm-dd-format\" >5. Display the date in yyyy-mm-dd format<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.rosehosting.com\/blog\/use-the-date-command-in-linux\/#6-Display-date-in-mmddyyyy-format\" >6. Display date in mm\/dd\/yyyy format<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.rosehosting.com\/blog\/use-the-date-command-in-linux\/#7-Display-only-the-time\" >7. Display only the time<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/www.rosehosting.com\/blog\/use-the-date-command-in-linux\/#8-Display-the-day-of-the-year\" >8. Display the day of the year<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/www.rosehosting.com\/blog\/use-the-date-command-in-linux\/#9-Formatting-Options\" >9. Formatting Options<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/www.rosehosting.com\/blog\/use-the-date-command-in-linux\/#10-Set-the-system-clock\" >10. Set the system clock<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"1-Find-the-date-5-weeks-in-the-future\"><\/span>1. Find the date 5 weeks in the future<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<pre><code>date -d \"5 weeks\"\r\nSun Jan  7 19:53:50 CST 2018\r\n<\/code><\/pre>\n<h2><span class=\"ez-toc-section\" id=\"2-Find-the-date-5-weeks-and-4-days-in-the-future\"><\/span>2. Find the date 5 weeks and 4 days in the future<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<pre><code>date -d \"5 weeks 4 days\"\r\nThu Jan 11 19:55:35 CST 2018\r\n<\/code><\/pre>\n<h2><span class=\"ez-toc-section\" id=\"3-Get-the-next-month-date\"><\/span>3. Get the next month date<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<pre><code>date -d \"next month\"\r\nWed Jan  3 19:57:43 CST 2018<\/code><\/pre>\n<h2><span class=\"ez-toc-section\" id=\"4-Get-the-last-sunday-date\"><\/span>4. Get the last sunday date<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<pre><code>date -d last-sunday\r\nSun Nov 26 00:00:00 CST 2017<\/code><\/pre>\n<p>The date command comes with various formatting option, the following examples will show you how to format the date command output.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"5-Display-the-date-in-yyyy-mm-dd-format\"><\/span>5. Display the date in yyyy-mm-dd format<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<pre><code>date +\"%F\"\r\n2017-12-03<\/code><\/pre>\n<h2><span class=\"ez-toc-section\" id=\"6-Display-date-in-mmddyyyy-format\"><\/span>6. Display date in mm\/dd\/yyyy format<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<pre><code>date +\"%m\/%d\/%Y\"\r\n12\/03\/2017\r\n<\/code><\/pre>\n<h2><span class=\"ez-toc-section\" id=\"7-Display-only-the-time\"><\/span>7. Display only the time<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<pre><code>date +\"%T\"\r\n20:07:04\r\n<\/code><\/pre>\n<h2><span class=\"ez-toc-section\" id=\"8-Display-the-day-of-the-year\"><\/span>8. Display the day of the year<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<pre><code>date +\"%j\"\r\n337\r\n<\/code><\/pre>\n<h2><span class=\"ez-toc-section\" id=\"9-Formatting-Options\"><\/span>9. Formatting Options<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<table>\n<tbody>\n<tr>\n<td><b>%%<\/b><\/td>\n<td>A literal percent sign (&#8220;<b>%<\/b>&#8220;).<\/td>\n<\/tr>\n<tr>\n<td><b>%a<\/b><\/td>\n<td>The abbreviated weekday name (e.g., <b>Sun<\/b>).<\/td>\n<\/tr>\n<tr>\n<td><b>%A<\/b><\/td>\n<td>The full weekday name (e.g., <b>Sunday<\/b>).<\/td>\n<\/tr>\n<tr>\n<td><b>%b<\/b><\/td>\n<td>The abbreviated month name (e.g., <b>Jan<\/b>).<\/td>\n<\/tr>\n<tr>\n<td><b>%B<\/b><\/td>\n<td>Locale&#8217;s full month name (e.g., <b>January<\/b>).<\/td>\n<\/tr>\n<tr>\n<td><b>%c<\/b><\/td>\n<td>The date and time (e.g., <b>Thu Mar 3 23:05:25 2005<\/b>).<\/td>\n<\/tr>\n<tr>\n<td><b>%C<\/b><\/td>\n<td>The current century; like <b>%Y<\/b>, except omit last two digits (e.g., <b>20<\/b>).<\/td>\n<\/tr>\n<tr>\n<td><b>%d<\/b><\/td>\n<td>Day of month (e.g., <b>01<\/b>).<\/td>\n<\/tr>\n<tr>\n<td><b>%D<\/b><\/td>\n<td>Date; same as <b>%m\/%d\/%y<\/b>.<\/td>\n<\/tr>\n<tr>\n<td><b>%e<\/b><\/td>\n<td>Day of month, space padded; same as <b>%_d<\/b>.<\/td>\n<\/tr>\n<tr>\n<td><b>%F<\/b><\/td>\n<td>Full date; same as <b>%Y-%m-%d<\/b>.<\/td>\n<\/tr>\n<tr>\n<td><b>%g<\/b><\/td>\n<td>Last two digits of year of ISO week number (see <b>%G<\/b>).<\/td>\n<\/tr>\n<tr>\n<td><b>%G<\/b><\/td>\n<td>Year of ISO week number (see <b>%V<\/b>); normally useful only with <b>%V<\/b>.<\/td>\n<\/tr>\n<tr>\n<td><b>%h<\/b><\/td>\n<td>Same as <b>%b<\/b>.<\/td>\n<\/tr>\n<tr>\n<td><b>%H<\/b><\/td>\n<td>Hour (<b>00<\/b>..<b>23<\/b>).<\/td>\n<\/tr>\n<tr>\n<td><b>%I<\/b><\/td>\n<td>Hour (<b>01<\/b>..<b>12<\/b>).<\/td>\n<\/tr>\n<tr>\n<td><b>%j<\/b><\/td>\n<td>Day of year (<b>001<\/b>..<b>366<\/b>).<\/td>\n<\/tr>\n<tr>\n<td><b>%k<\/b><\/td>\n<td>Hour, space padded ( <b>0<\/b>..<b>23<\/b>); same as <b>%_H<\/b>.<\/td>\n<\/tr>\n<tr>\n<td><b>%l<\/b><\/td>\n<td>Hour, space padded ( <b>1<\/b>..<b>12<\/b>); same as <b>%_I<\/b>.<\/td>\n<\/tr>\n<tr>\n<td><b>%m<\/b><\/td>\n<td>Month (<b>01<\/b>..<b>12<\/b>).<\/td>\n<\/tr>\n<tr>\n<td><b>%M<\/b><\/td>\n<td>Minute (<b>00<\/b>..<b>59<\/b>).<\/td>\n<\/tr>\n<tr>\n<td><b>%n<\/b><\/td>\n<td>A newline.<\/td>\n<\/tr>\n<tr>\n<td><b>%N<\/b><\/td>\n<td>Nanoseconds (<b>000000000<\/b>..<b>999999999<\/b>).<\/td>\n<\/tr>\n<tr>\n<td><b>%p<\/b><\/td>\n<td>Locale&#8217;s equivalent of either <b>AM<\/b> or <b>PM<\/b>; blank if not known.<\/td>\n<\/tr>\n<tr>\n<td><b>%P<\/b><\/td>\n<td>Like <b>%p<\/b>, but lower case.<\/td>\n<\/tr>\n<tr>\n<td><b>%r<\/b><\/td>\n<td>Locale&#8217;s 12-hour clock time (e.g., <b>11:11:04 PM<\/b>).<\/td>\n<\/tr>\n<tr>\n<td><b>%R<\/b><\/td>\n<td>24-hour hour and minute; same as <b>%H:%M<\/b>.<\/td>\n<\/tr>\n<tr>\n<td><b>%s<\/b><\/td>\n<td>Seconds since 1970-01-01 00:00:00 UTC.<\/td>\n<\/tr>\n<tr>\n<td><b>%S<\/b><\/td>\n<td>Second (<b>00<\/b>..<b>60<\/b>).<\/td>\n<\/tr>\n<tr>\n<td><b>%t<\/b><\/td>\n<td>A tab.<\/td>\n<\/tr>\n<tr>\n<td><b>%T<\/b><\/td>\n<td>Time; same as <b>%H:%M:%S<\/b>.<\/td>\n<\/tr>\n<tr>\n<td><b>%u<\/b><\/td>\n<td>Day of week (<b>1<\/b>..<b>7<\/b>); 1 is <b>Monday<\/b>.<\/td>\n<\/tr>\n<tr>\n<td><b>%U<\/b><\/td>\n<td>Week number of year, with Sunday as first day of week (<b>00<\/b>..<b>53<\/b>).<\/td>\n<\/tr>\n<tr>\n<td><b>%V<\/b><\/td>\n<td>ISO week number, with Monday as first day of week (<b>01<\/b>..<b>53<\/b>).<\/td>\n<\/tr>\n<tr>\n<td><b>%w<\/b><\/td>\n<td>Day of week (<b>0<\/b>..<b>6<\/b>); 0 is <b>Sunday<\/b>.<\/td>\n<\/tr>\n<tr>\n<td><b>%W<\/b><\/td>\n<td>Week number of year, with Monday as first day of week (<b>00<\/b>..<b>53<\/b>).<\/td>\n<\/tr>\n<tr>\n<td><b>%x<\/b><\/td>\n<td>Locale&#8217;s date representation (e.g., <b>12\/31\/99<\/b>).<\/td>\n<\/tr>\n<tr>\n<td><b>%X<\/b><\/td>\n<td>Locale&#8217;s time representation (e.g., <b>23:13:48<\/b>).<\/td>\n<\/tr>\n<tr>\n<td><b>%y<\/b><\/td>\n<td>Last two digits of year (<b>00<\/b>..<b>99<\/b>).<\/td>\n<\/tr>\n<tr>\n<td><b>%Y<\/b><\/td>\n<td>Year.<\/td>\n<\/tr>\n<tr>\n<td><b>%z<\/b><\/td>\n<td>+hhmm numeric time zone (e.g., <b>-0400<\/b>).<\/td>\n<\/tr>\n<tr>\n<td><b>%:z<\/b><\/td>\n<td>+hh:mm numeric time zone (e.g., <b>-04:00<\/b>).<\/td>\n<\/tr>\n<tr>\n<td><b>%::z<\/b><\/td>\n<td>+hh:mm:ss numeric time zone (e.g., <b>-04:00:00<\/b>).<\/td>\n<\/tr>\n<tr>\n<td><b>%:::z<\/b><\/td>\n<td>Numeric time zone with &#8220;<b>:<\/b>&#8221; to necessary precision (e.g., <b>-04<\/b>, <b>+05:30<\/b>).<\/td>\n<\/tr>\n<tr>\n<td><b>%Z<\/b><\/td>\n<td>Alphabetic time zone abbreviation (e.g., EDT).<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<h2><span class=\"ez-toc-section\" id=\"10-Set-the-system-clock\"><\/span>10. Set the system clock<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>With the date command in Linux, you can also manually\u00a0 set the system clock using the <code>--set<\/code> switch, in the following example we will set the system date to 4:22pm August 30, 2017<\/p>\n<pre><code>date --set=\"20170830 16:22\"\r\n<\/code><\/pre>\n<hr \/>\n<h3><span style=\"color: #3366ff;\">See Also &#8211; <a style=\"color: #3366ff;\" href=\"https:\/\/www.rosehosting.com\/blog\/find-large-files-linux\/\">Find Large Files in Linux<\/a><\/span><\/h3>\n<p>Of course, if you use one of our\u00a0<a href=\"https:\/\/www.rosehosting.com\/hosting-services.html\">VPS Hosting services<\/a>, you can always contact and ask our expert Linux admins (via chat or ticket) about date command in linux and anything related to date examples on Linux. They are available 24\u00d77 and will provide information or assistance immediately.<\/p>\n<p><span style=\"color: #ff0000;\"><strong>PS.<\/strong><\/span> If you liked this post on How to Use the Date Command in Linux please share it with your friends on the social networks using the buttons below or simply leave a reply. Thanks.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this post, we will show you some examples on how to use the date command in Linux. The date &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"Linux Date Command\" class=\"read-more button\" href=\"https:\/\/www.rosehosting.com\/blog\/use-the-date-command-in-linux\/#more-24419\" aria-label=\"Read more about Linux Date Command\">Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":24466,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1236],"tags":[1619,1635,297,27],"class_list":["post-24419","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-guides","tag-command","tag-date","tag-how-to","tag-linux","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-33"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.2 (Yoast SEO v27.3) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Linux Date Command | RoseHosting<\/title>\n<meta name=\"description\" content=\"Linux Date Command | RoseHosting\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.rosehosting.com\/blog\/use-the-date-command-in-linux\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Linux Date Command\" \/>\n<meta property=\"og:description\" content=\"Linux Date Command | RoseHosting\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rosehosting.com\/blog\/use-the-date-command-in-linux\/\" \/>\n<meta property=\"og:site_name\" content=\"RoseHosting\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/RoseHosting\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/rosehosting.helpdesk\" \/>\n<meta property=\"article:published_time\" content=\"2017-12-05T12:30:40+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-06-03T08:35:21+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/12\/How-to-Use-the-Date-Command-in-Linux.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"600\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Jeff Wilson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:site\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jeff Wilson\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/use-the-date-command-in-linux\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/use-the-date-command-in-linux\\\/\"},\"author\":{\"name\":\"Jeff Wilson\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\"},\"headline\":\"Linux Date Command\",\"datePublished\":\"2017-12-05T12:30:40+00:00\",\"dateModified\":\"2022-06-03T08:35:21+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/use-the-date-command-in-linux\\\/\"},\"wordCount\":627,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/use-the-date-command-in-linux\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/12\\\/How-to-Use-the-Date-Command-in-Linux.jpg\",\"keywords\":[\"command\",\"date\",\"how-to\",\"Linux\"],\"articleSection\":[\"Guides\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/use-the-date-command-in-linux\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/use-the-date-command-in-linux\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/use-the-date-command-in-linux\\\/\",\"name\":\"Linux Date Command | RoseHosting\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/use-the-date-command-in-linux\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/use-the-date-command-in-linux\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/12\\\/How-to-Use-the-Date-Command-in-Linux.jpg\",\"datePublished\":\"2017-12-05T12:30:40+00:00\",\"dateModified\":\"2022-06-03T08:35:21+00:00\",\"description\":\"Linux Date Command | RoseHosting\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/use-the-date-command-in-linux\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/use-the-date-command-in-linux\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/use-the-date-command-in-linux\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/12\\\/How-to-Use-the-Date-Command-in-Linux.jpg\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/12\\\/How-to-Use-the-Date-Command-in-Linux.jpg\",\"width\":1200,\"height\":600,\"caption\":\"How to Use the Date Command in Linux\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/use-the-date-command-in-linux\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Linux Date Command\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"name\":\"RoseHosting.com\",\"description\":\"Premium Linux Tutorials Since 2001\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\",\"name\":\"RoseHosting\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"width\":192,\"height\":192,\"caption\":\"RoseHosting\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/RoseHosting\",\"https:\\\/\\\/x.com\\\/rosehosting\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/rosehosting\\\/\"],\"description\":\"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.\",\"email\":\"info@rosehosting.com\",\"telephone\":\"(314) 275-0414\",\"legalName\":\"Rose Web Services LLC\",\"foundingDate\":\"2001-04-02\",\"numberOfEmployees\":{\"@type\":\"QuantitativeValue\",\"minValue\":\"11\",\"maxValue\":\"50\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\",\"name\":\"Jeff Wilson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"caption\":\"Jeff Wilson\"},\"description\":\"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.\",\"sameAs\":[\"https:\\\/\\\/www.rosehosting.com\",\"https:\\\/\\\/www.facebook.com\\\/rosehosting.helpdesk\"],\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/author\\\/jwilson\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Linux Date Command | RoseHosting","description":"Linux Date Command | RoseHosting","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.rosehosting.com\/blog\/use-the-date-command-in-linux\/","og_locale":"en_US","og_type":"article","og_title":"Linux Date Command","og_description":"Linux Date Command | RoseHosting","og_url":"https:\/\/www.rosehosting.com\/blog\/use-the-date-command-in-linux\/","og_site_name":"RoseHosting","article_publisher":"https:\/\/www.facebook.com\/RoseHosting","article_author":"https:\/\/www.facebook.com\/rosehosting.helpdesk","article_published_time":"2017-12-05T12:30:40+00:00","article_modified_time":"2022-06-03T08:35:21+00:00","og_image":[{"width":1200,"height":600,"url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/12\/How-to-Use-the-Date-Command-in-Linux.jpg","type":"image\/jpeg"}],"author":"Jeff Wilson","twitter_card":"summary_large_image","twitter_creator":"@rosehosting","twitter_site":"@rosehosting","twitter_misc":{"Written by":"Jeff Wilson","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.rosehosting.com\/blog\/use-the-date-command-in-linux\/#article","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/use-the-date-command-in-linux\/"},"author":{"name":"Jeff Wilson","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713"},"headline":"Linux Date Command","datePublished":"2017-12-05T12:30:40+00:00","dateModified":"2022-06-03T08:35:21+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/use-the-date-command-in-linux\/"},"wordCount":627,"commentCount":0,"publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/use-the-date-command-in-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/12\/How-to-Use-the-Date-Command-in-Linux.jpg","keywords":["command","date","how-to","Linux"],"articleSection":["Guides"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.rosehosting.com\/blog\/use-the-date-command-in-linux\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.rosehosting.com\/blog\/use-the-date-command-in-linux\/","url":"https:\/\/www.rosehosting.com\/blog\/use-the-date-command-in-linux\/","name":"Linux Date Command | RoseHosting","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/use-the-date-command-in-linux\/#primaryimage"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/use-the-date-command-in-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/12\/How-to-Use-the-Date-Command-in-Linux.jpg","datePublished":"2017-12-05T12:30:40+00:00","dateModified":"2022-06-03T08:35:21+00:00","description":"Linux Date Command | RoseHosting","breadcrumb":{"@id":"https:\/\/www.rosehosting.com\/blog\/use-the-date-command-in-linux\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rosehosting.com\/blog\/use-the-date-command-in-linux\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/use-the-date-command-in-linux\/#primaryimage","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/12\/How-to-Use-the-Date-Command-in-Linux.jpg","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/12\/How-to-Use-the-Date-Command-in-Linux.jpg","width":1200,"height":600,"caption":"How to Use the Date Command in Linux"},{"@type":"BreadcrumbList","@id":"https:\/\/www.rosehosting.com\/blog\/use-the-date-command-in-linux\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.rosehosting.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Linux Date Command"}]},{"@type":"WebSite","@id":"https:\/\/www.rosehosting.com\/blog\/#website","url":"https:\/\/www.rosehosting.com\/blog\/","name":"RoseHosting.com","description":"Premium Linux Tutorials Since 2001","publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.rosehosting.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.rosehosting.com\/blog\/#organization","name":"RoseHosting","url":"https:\/\/www.rosehosting.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","width":192,"height":192,"caption":"RoseHosting"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/RoseHosting","https:\/\/x.com\/rosehosting","https:\/\/www.linkedin.com\/in\/rosehosting\/"],"description":"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.","email":"info@rosehosting.com","telephone":"(314) 275-0414","legalName":"Rose Web Services LLC","foundingDate":"2001-04-02","numberOfEmployees":{"@type":"QuantitativeValue","minValue":"11","maxValue":"50"}},{"@type":"Person","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713","name":"Jeff Wilson","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","caption":"Jeff Wilson"},"description":"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.","sameAs":["https:\/\/www.rosehosting.com","https:\/\/www.facebook.com\/rosehosting.helpdesk"],"url":"https:\/\/www.rosehosting.com\/blog\/author\/jwilson\/"}]}},"_links":{"self":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/24419","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/comments?post=24419"}],"version-history":[{"count":1,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/24419\/revisions"}],"predecessor-version":[{"id":41847,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/24419\/revisions\/41847"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media\/24466"}],"wp:attachment":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media?parent=24419"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/categories?post=24419"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/tags?post=24419"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}