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

What is Soda Fountain Etiquette?

Stolen MacBook should I worry about my data?

A first "Hangman" game in Python

What is the name of this plot that has rows with two connected dots?

Can a DM change an item given by another DM?

How many petaflops does it take to land on the moon? What does Artemis need with an Aitken?

Federal Pacific 200a main panel problem with oversized 100a 2pole breaker

rationalizing sieges in a modern/near-future setting

Recommended Breathing Exercises to Play Woodwinds

Why is getting a PhD considered "financially irresponsible" by some people?

Commercial company wants me to list all prior "inventions", give up everything not listed

Will removing shelving screws from studs damage the studs?

Grep contents before a colon

Find most "academic" implementation of doubly linked list

Are strlen optimizations really needed in glibc?

Find feasible point in polynomial time in linear programming

74S vs 74LS ICs

Is a Centaur PC considered an animal when calculating carrying capacity for vehicles?

Dotted background on a flowchart

Is there an in-universe explanation given to the senior Imperial Navy Officers as to why Darth Vader serves Emperor Palpatine?

Is there any problem with a full installation on a USB drive?

Fantasy Macro Economics: What would Merfolk Trade?

Count the number of shortest paths to n

Why didn't Doc believe Marty was from the future?



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
    Aug 15 at 7:12

















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
    Aug 15 at 7:12













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 Aug 15 at 7:07









Kusalananda

161k18 gold badges318 silver badges506 bronze badges




161k18 gold badges318 silver badges506 bronze badges










asked Aug 15 at 0:51









VillageVillage

2,1608 gold badges35 silver badges57 bronze badges




2,1608 gold badges35 silver badges57 bronze badges










  • 1





    Possible duplicate of Convert Date formate in unix

    – muru
    Aug 15 at 7:12












  • 1





    Possible duplicate of Convert Date formate in unix

    – muru
    Aug 15 at 7:12







1




1





Possible duplicate of Convert Date formate in unix

– muru
Aug 15 at 7:12





Possible duplicate of Convert Date formate in unix

– muru
Aug 15 at 7:12










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 Aug 15 at 7:37

























          answered Aug 15 at 7:18









          KusalanandaKusalananda

          161k18 gold badges318 silver badges506 bronze badges




          161k18 gold badges318 silver badges506 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 Aug 15 at 7:06









                  Kusalananda

                  161k18 gold badges318 silver badges506 bronze badges




                  161k18 gold badges318 silver badges506 bronze badges










                  answered Aug 15 at 0:59









                  JankaJanka

                  3065 bronze badges




                  3065 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

                      Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

                      Circuit construction for execution of conditional statements using least significant bitHow are two different registers being used as “control”?How exactly is the stated composite state of the two registers being produced using the $R_zz$ controlled rotations?Efficiently performing controlled rotations in HHLWould this quantum algorithm implementation work?How to prepare a superposed states of odd integers from $1$ to $sqrtN$?Why is this implementation of the order finding algorithm not working?Circuit construction for Hamiltonian simulationHow can I invert the least significant bit of a certain term of a superposed state?Implementing an oracleImplementing a controlled sum operation

                      Magento 2 “No Payment Methods” in Admin New OrderHow to integrate Paypal Express Checkout with the Magento APIMagento 1.5 - Sales > Order > edit order and shipping methods disappearAuto Invoice Check/Money Order Payment methodAdd more simple payment methods?Shipping methods not showingWhat should I do to change payment methods if changing the configuration has no effects?1.9 - No Payment Methods showing upMy Payment Methods not Showing for downloadable/virtual product when checkout?Magento2 API to access internal payment methodHow to call an existing payment methods in the registration form?