SET DATESTYLE TO 'European'; in MySQL

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty margin-bottom:0;







up vote
2
down vote

favorite












I'm doing MySQL exercises and I found some of PostgreSQL, and there is a part where before entering the data to the newly created tables, enter that command, SET DATESTYLE TO 'European'; I tried to put it in MySQL but it does not recognize it, what would be its equivalent?










share|improve this question







New contributor




darioxlz is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

























    up vote
    2
    down vote

    favorite












    I'm doing MySQL exercises and I found some of PostgreSQL, and there is a part where before entering the data to the newly created tables, enter that command, SET DATESTYLE TO 'European'; I tried to put it in MySQL but it does not recognize it, what would be its equivalent?










    share|improve this question







    New contributor




    darioxlz is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.





















      up vote
      2
      down vote

      favorite









      up vote
      2
      down vote

      favorite











      I'm doing MySQL exercises and I found some of PostgreSQL, and there is a part where before entering the data to the newly created tables, enter that command, SET DATESTYLE TO 'European'; I tried to put it in MySQL but it does not recognize it, what would be its equivalent?










      share|improve this question







      New contributor




      darioxlz is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      I'm doing MySQL exercises and I found some of PostgreSQL, and there is a part where before entering the data to the newly created tables, enter that command, SET DATESTYLE TO 'European'; I tried to put it in MySQL but it does not recognize it, what would be its equivalent?







      mysql postgresql date






      share|improve this question







      New contributor




      darioxlz is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question







      New contributor




      darioxlz is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question






      New contributor




      darioxlz is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 4 hours ago









      darioxlz

      111




      111




      New contributor




      darioxlz is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      darioxlz is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      darioxlz is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          2
          down vote













          mysql store all the dates in the same style. Internally this is three bytes that are expanded to the YYYY-MM-DD. You can convert this format to the any desired form by DATE_FORMAT() function like that:



          SELECT DATE(now()) AS sysformat
          , DATE_FORMAT( NOW(), '%W %M %D %Y, %j'th day of the year') AS myformat





          share|improve this answer






















            Your Answer







            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "182"
            ;
            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',
            convertImagesToLinks: false,
            noModals: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );






            darioxlz is a new contributor. Be nice, and check out our Code of Conduct.









             

            draft saved


            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdba.stackexchange.com%2fquestions%2f218362%2fset-datestyle-to-european-in-mysql%23new-answer', 'question_page');

            );

            Post as a guest






























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            2
            down vote













            mysql store all the dates in the same style. Internally this is three bytes that are expanded to the YYYY-MM-DD. You can convert this format to the any desired form by DATE_FORMAT() function like that:



            SELECT DATE(now()) AS sysformat
            , DATE_FORMAT( NOW(), '%W %M %D %Y, %j'th day of the year') AS myformat





            share|improve this answer


























              up vote
              2
              down vote













              mysql store all the dates in the same style. Internally this is three bytes that are expanded to the YYYY-MM-DD. You can convert this format to the any desired form by DATE_FORMAT() function like that:



              SELECT DATE(now()) AS sysformat
              , DATE_FORMAT( NOW(), '%W %M %D %Y, %j'th day of the year') AS myformat





              share|improve this answer
























                up vote
                2
                down vote










                up vote
                2
                down vote









                mysql store all the dates in the same style. Internally this is three bytes that are expanded to the YYYY-MM-DD. You can convert this format to the any desired form by DATE_FORMAT() function like that:



                SELECT DATE(now()) AS sysformat
                , DATE_FORMAT( NOW(), '%W %M %D %Y, %j'th day of the year') AS myformat





                share|improve this answer














                mysql store all the dates in the same style. Internally this is three bytes that are expanded to the YYYY-MM-DD. You can convert this format to the any desired form by DATE_FORMAT() function like that:



                SELECT DATE(now()) AS sysformat
                , DATE_FORMAT( NOW(), '%W %M %D %Y, %j'th day of the year') AS myformat






                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited 1 hour ago

























                answered 1 hour ago









                Kondybas

                2,07289




                2,07289




















                    darioxlz is a new contributor. Be nice, and check out our Code of Conduct.









                     

                    draft saved


                    draft discarded


















                    darioxlz is a new contributor. Be nice, and check out our Code of Conduct.












                    darioxlz is a new contributor. Be nice, and check out our Code of Conduct.











                    darioxlz is a new contributor. Be nice, and check out our Code of Conduct.













                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdba.stackexchange.com%2fquestions%2f218362%2fset-datestyle-to-european-in-mysql%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Comments

                    Popular posts from this blog

                    What does second last employer means? [closed]

                    Installing NextGIS Connect into QGIS 3?

                    One-line joke