javascript help needed!!!

Out of context: Reply #11

  • Started
  • Last post
  • 17 Responses
  • joec0

    ok... i can not thank you enough!!

    we are getting closer...

    the one small problem it has now is that if the seconds are <9 it still keeps the "0" before the seconds. here is what i have in my code right now:

    var dn=""
    if (hours=13)
    var dn="pm"
    var hours = hours-12
    if (hours==24)
    var dn="pm"
    var hours = hours
    if (minutes<=9)
    minutes="0"+minutes
    if (seconds<=9) +"pm "
    seconds="0"+seconds

    i tried playing around with it, but couldnt get the exact thing. can you figure this out? im assuming it will do the same with the minutes...

    everything else is working perfectly!!! thanks again...

View thread