Time field doesn't show time with AM/PM properly when use default value

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
3
down vote

favorite
1












I am trying auto fill time field while creating new record.



my field as here what i want to show



What i want to show



but i am getting like this



my field data type is time



i am getting like this



i am using default value



enter image description here










share|improve this question



























    up vote
    3
    down vote

    favorite
    1












    I am trying auto fill time field while creating new record.



    my field as here what i want to show



    What i want to show



    but i am getting like this



    my field data type is time



    i am getting like this



    i am using default value



    enter image description here










    share|improve this question























      up vote
      3
      down vote

      favorite
      1









      up vote
      3
      down vote

      favorite
      1






      1





      I am trying auto fill time field while creating new record.



      my field as here what i want to show



      What i want to show



      but i am getting like this



      my field data type is time



      i am getting like this



      i am using default value



      enter image description here










      share|improve this question













      I am trying auto fill time field while creating new record.



      my field as here what i want to show



      What i want to show



      but i am getting like this



      my field data type is time



      i am getting like this



      i am using default value



      enter image description here







      default-value






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Aug 8 at 6:39









      Kshitij Rodrigues

      161




      161




















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          2
          down vote













          I noticed Salesforce lighting supporting this feature with AM and PM via picklist but in classic you have to enter value manually.



          Just see the same field in lighting and classic you will come to know the difference.






          share|improve this answer




















          • This does not answer the original question. The problem is that time doesn't show correctly when the Time fields has the default value.
            – Eduard
            Aug 8 at 8:12










          • Yes it's not showing correct value.. it's a classic feature, the same will work on lighting, that's what I mentioned
            – Prem Anandh
            Aug 8 at 8:17

















          up vote
          2
          down vote













          In Salesforce Classic, there is no way you can change the display format of time field to AM/PM at the time of editing. However, when you save your record it will show the time in AM/PM format.



          In lightning, you can see AM/PM format while editing records.



          When using Apex, You can change formats of time field while editing.



          Moreover, In formula field you have used:




          TIMEVALUE( TIMENOW() )




          and this is wrong. You cannot use TIMEVALUE() on a TIME field because TIME field's value is already in TIME format.



          So you only need to write this:




          TIMENOW()




          Reference: Refer to Time TIMEVALUE() function here






          share|improve this answer






















            Your Answer







            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "459"
            ;
            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
            );



            );













             

            draft saved


            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsalesforce.stackexchange.com%2fquestions%2f228108%2ftime-field-doesnt-show-time-with-am-pm-properly-when-use-default-value%23new-answer', 'question_page');

            );

            Post as a guest






























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            2
            down vote













            I noticed Salesforce lighting supporting this feature with AM and PM via picklist but in classic you have to enter value manually.



            Just see the same field in lighting and classic you will come to know the difference.






            share|improve this answer




















            • This does not answer the original question. The problem is that time doesn't show correctly when the Time fields has the default value.
              – Eduard
              Aug 8 at 8:12










            • Yes it's not showing correct value.. it's a classic feature, the same will work on lighting, that's what I mentioned
              – Prem Anandh
              Aug 8 at 8:17














            up vote
            2
            down vote













            I noticed Salesforce lighting supporting this feature with AM and PM via picklist but in classic you have to enter value manually.



            Just see the same field in lighting and classic you will come to know the difference.






            share|improve this answer




















            • This does not answer the original question. The problem is that time doesn't show correctly when the Time fields has the default value.
              – Eduard
              Aug 8 at 8:12










            • Yes it's not showing correct value.. it's a classic feature, the same will work on lighting, that's what I mentioned
              – Prem Anandh
              Aug 8 at 8:17












            up vote
            2
            down vote










            up vote
            2
            down vote









            I noticed Salesforce lighting supporting this feature with AM and PM via picklist but in classic you have to enter value manually.



            Just see the same field in lighting and classic you will come to know the difference.






            share|improve this answer












            I noticed Salesforce lighting supporting this feature with AM and PM via picklist but in classic you have to enter value manually.



            Just see the same field in lighting and classic you will come to know the difference.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Aug 8 at 7:36









            Prem Anandh

            1488




            1488











            • This does not answer the original question. The problem is that time doesn't show correctly when the Time fields has the default value.
              – Eduard
              Aug 8 at 8:12










            • Yes it's not showing correct value.. it's a classic feature, the same will work on lighting, that's what I mentioned
              – Prem Anandh
              Aug 8 at 8:17
















            • This does not answer the original question. The problem is that time doesn't show correctly when the Time fields has the default value.
              – Eduard
              Aug 8 at 8:12










            • Yes it's not showing correct value.. it's a classic feature, the same will work on lighting, that's what I mentioned
              – Prem Anandh
              Aug 8 at 8:17















            This does not answer the original question. The problem is that time doesn't show correctly when the Time fields has the default value.
            – Eduard
            Aug 8 at 8:12




            This does not answer the original question. The problem is that time doesn't show correctly when the Time fields has the default value.
            – Eduard
            Aug 8 at 8:12












            Yes it's not showing correct value.. it's a classic feature, the same will work on lighting, that's what I mentioned
            – Prem Anandh
            Aug 8 at 8:17




            Yes it's not showing correct value.. it's a classic feature, the same will work on lighting, that's what I mentioned
            – Prem Anandh
            Aug 8 at 8:17












            up vote
            2
            down vote













            In Salesforce Classic, there is no way you can change the display format of time field to AM/PM at the time of editing. However, when you save your record it will show the time in AM/PM format.



            In lightning, you can see AM/PM format while editing records.



            When using Apex, You can change formats of time field while editing.



            Moreover, In formula field you have used:




            TIMEVALUE( TIMENOW() )




            and this is wrong. You cannot use TIMEVALUE() on a TIME field because TIME field's value is already in TIME format.



            So you only need to write this:




            TIMENOW()




            Reference: Refer to Time TIMEVALUE() function here






            share|improve this answer


























              up vote
              2
              down vote













              In Salesforce Classic, there is no way you can change the display format of time field to AM/PM at the time of editing. However, when you save your record it will show the time in AM/PM format.



              In lightning, you can see AM/PM format while editing records.



              When using Apex, You can change formats of time field while editing.



              Moreover, In formula field you have used:




              TIMEVALUE( TIMENOW() )




              and this is wrong. You cannot use TIMEVALUE() on a TIME field because TIME field's value is already in TIME format.



              So you only need to write this:




              TIMENOW()




              Reference: Refer to Time TIMEVALUE() function here






              share|improve this answer
























                up vote
                2
                down vote










                up vote
                2
                down vote









                In Salesforce Classic, there is no way you can change the display format of time field to AM/PM at the time of editing. However, when you save your record it will show the time in AM/PM format.



                In lightning, you can see AM/PM format while editing records.



                When using Apex, You can change formats of time field while editing.



                Moreover, In formula field you have used:




                TIMEVALUE( TIMENOW() )




                and this is wrong. You cannot use TIMEVALUE() on a TIME field because TIME field's value is already in TIME format.



                So you only need to write this:




                TIMENOW()




                Reference: Refer to Time TIMEVALUE() function here






                share|improve this answer














                In Salesforce Classic, there is no way you can change the display format of time field to AM/PM at the time of editing. However, when you save your record it will show the time in AM/PM format.



                In lightning, you can see AM/PM format while editing records.



                When using Apex, You can change formats of time field while editing.



                Moreover, In formula field you have used:




                TIMEVALUE( TIMENOW() )




                and this is wrong. You cannot use TIMEVALUE() on a TIME field because TIME field's value is already in TIME format.



                So you only need to write this:




                TIMENOW()




                Reference: Refer to Time TIMEVALUE() function here







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Aug 8 at 8:54

























                answered Aug 8 at 7:29









                Jahnvi Jasani

                568




                568



























                     

                    draft saved


                    draft discarded















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsalesforce.stackexchange.com%2fquestions%2f228108%2ftime-field-doesnt-show-time-with-am-pm-properly-when-use-default-value%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Popular posts from this blog

                    pylint3 and pip3 broken

                    Missing snmpget and snmpwalk

                    How to enroll fingerprints to Ubuntu 17.10 with VFS491