comparing time values

Results 1 to 2 of 2

Thread: comparing time values

  1. #1
    Join Date
    Dec 1969

    Default comparing time values

    HI <BR><BR>I&#039;m quite new to JScript so I hope someone can help me.<BR><BR>I am trying to compare two time values one is retrieved by the following <BR>code:<BR><BR>var sTime = today.toLocaleTimeString() <BR><BR>The second is a text value and it&#039;s <BR>format is as follows:<BR><BR>9:35AM<BR><BR>I am having real trouble tring to convert the second time variable so that I can compare it to the first, any ideas would be really appreciated.<BR><BR>Thanks

  2. #2
    Join Date
    Dec 1969

    Default How do you want to compare it?

    Because it may well be easier to compare them in date format, rather than as strings...<BR><BR>Craig.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts