Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • but i have start and end time to check and also u haven't mentioned am and pm. Commented Jun 28, 2013 at 10:47
  • This is one of examples above, to solve your challenge. You can use any valid format of date (with AM/PM or without) as far as it will be properly parsed to actual date by JS. In example above, x is start, and y is end. Additionally it does not matter in example above which date is start and which is end. They are two dates, and range of time will be calculated from them. In most cases it is a scenario.
    – moka
    Commented Jun 28, 2013 at 12:51
  • Updated the question, to reflect actually the question as before it was slightly different.
    – moka
    Commented Nov 19, 2014 at 15:30