How to convert 2019-08-15 date format to August 15, 2019 in the command line?Convert Date formate in...

Are there liquid fueled rocket boosters having coaxial fuel/oxidizer tanks?

Doesn't the speed of light limit imply the same electron can be annihilated twice?

Do I need to start off my book by describing the character's "normal world"?

Why do so many people play out of turn on the last lead?

What is the hottest thing in the universe?

Would the USA be eligible to join the European Union?

How to use Palatino font for text and what about maths?

Are they two subordinate clauses?

What's the point of writing that I know will never be used or read?

Is there a fallacy about "appeal to 'big words'"?

Build a mob of suspiciously happy lenny faces ( ͡° ͜ʖ ͡°)

What allows us to use imaginary numbers?

Insert or push_back to end of a std::vector?

Partitioning and sorting even and odd numbers within an array

Ignore very specific error message in bash

What is the "thing" which is trained in AI model training

Are there any cons in using rounded corners for bar graphs?

Visa on arrival to exit airport in Russia

Good way to stop electrolyte tabs from turning into powder?

Pronunciation of famoso and cosa

How can I find an old paper when the usual methods fail?

How to measure if Scrum Master is making a difference and when to give up

Did Michelle Obama have a staff of 23; and Melania have a staff of 4?

Why are electric shavers specifically permitted under FAR §91.21



How to convert 2019-08-15 date format to August 15, 2019 in the command line?


Convert Date formate in unixConvert any Date format in unixconvert date format in logConvert a date formatchange date format and store in variable using awkHow to convert date format in fileDate change format in unixCan I convert a date in the format YYYYMMDDHHMM using date?convert the dates to a standard format






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







3















Given a bash variable with the value 2019-08-15, is there some utility that can convert that date to the format August 15, 2019?










share|improve this question






















  • 1





    Possible duplicate of Convert Date formate in unix

    – muru
    yesterday


















3















Given a bash variable with the value 2019-08-15, is there some utility that can convert that date to the format August 15, 2019?










share|improve this question






















  • 1





    Possible duplicate of Convert Date formate in unix

    – muru
    yesterday














3












3








3








Given a bash variable with the value 2019-08-15, is there some utility that can convert that date to the format August 15, 2019?










share|improve this question
















Given a bash variable with the value 2019-08-15, is there some utility that can convert that date to the format August 15, 2019?







command-line date






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited yesterday









Kusalananda

160k18 gold badges316 silver badges502 bronze badges




160k18 gold badges316 silver badges502 bronze badges










asked yesterday









VillageVillage

2,1558 gold badges35 silver badges57 bronze badges




2,1558 gold badges35 silver badges57 bronze badges











  • 1





    Possible duplicate of Convert Date formate in unix

    – muru
    yesterday














  • 1





    Possible duplicate of Convert Date formate in unix

    – muru
    yesterday








1




1





Possible duplicate of Convert Date formate in unix

– muru
yesterday





Possible duplicate of Convert Date formate in unix

– muru
yesterday










2 Answers
2






active

oldest

votes


















6














On Linux, or any system that uses GNU date:



$ thedate=2019-08-15
$ date -d "$thedate" +'%B %e, %Y'
August 15, 2019


On macOS, OpenBSD and FreeBSD, where GNU date is not available by default:



$ thedate=2019-08-15
$ date -j -f '%Y-%m-%d' "$thedate" +'%B %e, %Y'
August 15, 2019


The -j option disables setting the system clock, and the format string used with -f describes the input date format (should be a strptime(3) format string describing the format used by your variable's value). Then follows the value of your variable and the format that you want your output to be in (should be a strftime(3) format string).



NetBSD users may use something similar to the above but without the -f input_fmt option, as their date implementation uses parsedate(3). Note also the -d option to specify the input date string:



$ thedate=2019-08-15
$ date -j -d "$thedate" +'%B %e, %Y'
August 15, 2019


See also the manual for date on your system.






share|improve this answer



































    4














    Assuming that you have access to GNU date, something along



    $ date --date="2019-08-15" "+%B %d, %Y"
    August 15, 2019


    Check the manpage of date (man date).






    share|improve this answer






























      Your Answer








      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "106"
      };
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function() {
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled) {
      StackExchange.using("snippets", function() {
      createEditor();
      });
      }
      else {
      createEditor();
      }
      });

      function createEditor() {
      StackExchange.prepareEditor({
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: false,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: null,
      bindNavPrevention: true,
      postfix: "",
      imageUploader: {
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      },
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      });


      }
      });














      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f535662%2fhow-to-convert-2019-08-15-date-format-to-august-15-2019-in-the-command-line%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      6














      On Linux, or any system that uses GNU date:



      $ thedate=2019-08-15
      $ date -d "$thedate" +'%B %e, %Y'
      August 15, 2019


      On macOS, OpenBSD and FreeBSD, where GNU date is not available by default:



      $ thedate=2019-08-15
      $ date -j -f '%Y-%m-%d' "$thedate" +'%B %e, %Y'
      August 15, 2019


      The -j option disables setting the system clock, and the format string used with -f describes the input date format (should be a strptime(3) format string describing the format used by your variable's value). Then follows the value of your variable and the format that you want your output to be in (should be a strftime(3) format string).



      NetBSD users may use something similar to the above but without the -f input_fmt option, as their date implementation uses parsedate(3). Note also the -d option to specify the input date string:



      $ thedate=2019-08-15
      $ date -j -d "$thedate" +'%B %e, %Y'
      August 15, 2019


      See also the manual for date on your system.






      share|improve this answer
































        6














        On Linux, or any system that uses GNU date:



        $ thedate=2019-08-15
        $ date -d "$thedate" +'%B %e, %Y'
        August 15, 2019


        On macOS, OpenBSD and FreeBSD, where GNU date is not available by default:



        $ thedate=2019-08-15
        $ date -j -f '%Y-%m-%d' "$thedate" +'%B %e, %Y'
        August 15, 2019


        The -j option disables setting the system clock, and the format string used with -f describes the input date format (should be a strptime(3) format string describing the format used by your variable's value). Then follows the value of your variable and the format that you want your output to be in (should be a strftime(3) format string).



        NetBSD users may use something similar to the above but without the -f input_fmt option, as their date implementation uses parsedate(3). Note also the -d option to specify the input date string:



        $ thedate=2019-08-15
        $ date -j -d "$thedate" +'%B %e, %Y'
        August 15, 2019


        See also the manual for date on your system.






        share|improve this answer






























          6












          6








          6







          On Linux, or any system that uses GNU date:



          $ thedate=2019-08-15
          $ date -d "$thedate" +'%B %e, %Y'
          August 15, 2019


          On macOS, OpenBSD and FreeBSD, where GNU date is not available by default:



          $ thedate=2019-08-15
          $ date -j -f '%Y-%m-%d' "$thedate" +'%B %e, %Y'
          August 15, 2019


          The -j option disables setting the system clock, and the format string used with -f describes the input date format (should be a strptime(3) format string describing the format used by your variable's value). Then follows the value of your variable and the format that you want your output to be in (should be a strftime(3) format string).



          NetBSD users may use something similar to the above but without the -f input_fmt option, as their date implementation uses parsedate(3). Note also the -d option to specify the input date string:



          $ thedate=2019-08-15
          $ date -j -d "$thedate" +'%B %e, %Y'
          August 15, 2019


          See also the manual for date on your system.






          share|improve this answer















          On Linux, or any system that uses GNU date:



          $ thedate=2019-08-15
          $ date -d "$thedate" +'%B %e, %Y'
          August 15, 2019


          On macOS, OpenBSD and FreeBSD, where GNU date is not available by default:



          $ thedate=2019-08-15
          $ date -j -f '%Y-%m-%d' "$thedate" +'%B %e, %Y'
          August 15, 2019


          The -j option disables setting the system clock, and the format string used with -f describes the input date format (should be a strptime(3) format string describing the format used by your variable's value). Then follows the value of your variable and the format that you want your output to be in (should be a strftime(3) format string).



          NetBSD users may use something similar to the above but without the -f input_fmt option, as their date implementation uses parsedate(3). Note also the -d option to specify the input date string:



          $ thedate=2019-08-15
          $ date -j -d "$thedate" +'%B %e, %Y'
          August 15, 2019


          See also the manual for date on your system.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited yesterday

























          answered yesterday









          KusalanandaKusalananda

          160k18 gold badges316 silver badges502 bronze badges




          160k18 gold badges316 silver badges502 bronze badges




























              4














              Assuming that you have access to GNU date, something along



              $ date --date="2019-08-15" "+%B %d, %Y"
              August 15, 2019


              Check the manpage of date (man date).






              share|improve this answer
































                4














                Assuming that you have access to GNU date, something along



                $ date --date="2019-08-15" "+%B %d, %Y"
                August 15, 2019


                Check the manpage of date (man date).






                share|improve this answer






























                  4












                  4








                  4







                  Assuming that you have access to GNU date, something along



                  $ date --date="2019-08-15" "+%B %d, %Y"
                  August 15, 2019


                  Check the manpage of date (man date).






                  share|improve this answer















                  Assuming that you have access to GNU date, something along



                  $ date --date="2019-08-15" "+%B %d, %Y"
                  August 15, 2019


                  Check the manpage of date (man date).







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited yesterday









                  Kusalananda

                  160k18 gold badges316 silver badges502 bronze badges




                  160k18 gold badges316 silver badges502 bronze badges










                  answered yesterday









                  JankaJanka

                  2965 bronze badges




                  2965 bronze badges

































                      draft saved

                      draft discarded




















































                      Thanks for contributing an answer to Unix & Linux Stack Exchange!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f535662%2fhow-to-convert-2019-08-15-date-format-to-august-15-2019-in-the-command-line%23new-answer', 'question_page');
                      }
                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      Taj Mahal Inhaltsverzeichnis Aufbau | Geschichte | 350-Jahr-Feier | Heutige Bedeutung | Siehe auch |...

                      Baia Sprie Cuprins Etimologie | Istorie | Demografie | Politică și administrație | Arii naturale...

                      Nicolae Petrescu-Găină Cuprins Biografie | Opera | In memoriam | Varia | Controverse, incertitudini...