Loading ...
Sorry, an error occurred while loading the content.

javascript date notation

Expand Messages
  • Adrien Verlee
    Here somebody with knowledge of JavaScript? Something small to resolve. The script works but can t correct display a 24 hours notation; it is displaying 12
    Message 1 of 4 , Aug 2, 2010
    • 0 Attachment
      Here somebody with knowledge of JavaScript? Something small to resolve.

      The script works but can't correct display a 24 hours notation; it is
      displaying 12 hours.
      I can change to 24, but counts are not properly after AM or PM.
      Thanks in advance.
      --
      Adrien
    • Adrien Verlee
      ... Oh! key-script is this: if(uur==0){ap= AM ;uur=12} else if(uur = 13){ap= PM ;uur-=12}
      Message 2 of 4 , Aug 2, 2010
      • 0 Attachment
        Op 2-aug-10, om 11:10 heeft Adrien Verlee het volgende geschreven:

        > I can change to 24, but counts are not properly after AM or PM.


        Oh! "key-script" is this:

        if(uur==0){ap=" AM";uur=12}
        else if(uur <= 11){ap=" AM"}
        else if(uur == 12){ap=" PM";uur=12}
        else if(uur >= 13){ap=" PM";uur-=12}
        if(min <= 9){min="0"+min}

        It must be logic, but can't see it.
        --
        Adrien
      • derek_barnes@mail.com
        I know nothing about Java, but shouldn t this be ...uur=-12... ?? else if(uur = 13){ap= PM ;uur-=12} cheers, Derek ... From: Adrien Verlee
        Message 3 of 4 , Aug 3, 2010
        • 0 Attachment
          I know nothing about Java, but shouldn't this be "...uur=-12..." ??

          else if(uur >= 13){ap=" PM";uur-=12}


          cheers,
          Derek


          ==========================


          -----Original Message-----
          From: Adrien Verlee <adrien.verlee@...>
          To: ntb-OffTopic@yahoogroups.com
          Sent: Mon, Aug 2, 2010 10:18 pm
          Subject: Re: [NTO] javascript date notation


          Op 2-aug-10, om 11:10 heeft Adrien Verlee het volgende geschreven:

          > I can change to 24, but counts are not properly after AM or PM.


          Oh! "key-script" is this:

          if(uur==0){ap=" AM";uur=12}
          else if(uur <= 11){ap=" AM"}
          else if(uur == 12){ap=" PM";uur=12}
          else if(uur >= 13){ap=" PM";uur-=12}
          if(min <= 9){min="0"+min}

          It must be logic, but can't see it.
          --
          Adrien





          ------------------------------------

          Yahoo! Groups Links







          [Non-text portions of this message have been removed]
        • Adrien Verlee
          Op 3-aug-10, om 09:01 heeft derek_barnes@mail.com het volgende ... A fresh look does wonders. To be sure, I have to wait for 12 hours. But change everything to
          Message 4 of 4 , Aug 3, 2010
          • 0 Attachment
            Op 3-aug-10, om 09:01 heeft derek_barnes@... het volgende
            geschreven:

            > I know nothing about Java, but shouldn't this be "...uur=-12..." ??
            >
            > else if(uur >= 13){ap=" PM";uur-=12}

            A fresh look does wonders.
            To be sure, I have to wait for 12 hours. But change everything to 00
            is the solution, it seems.

            Thank you.
            --
            Adrien
          Your message has been successfully submitted and would be delivered to recipients shortly.