Timeline for Date issues in JavaScript
Current License: CC BY-SA 3.0
15 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Dec 4, 2014 at 12:21 | comment | added | RobG |
You might find it simpler to use +myDate == +date1.
|
|
| S Dec 4, 2014 at 12:15 | history | edited | RichardBernards | CC BY-SA 3.0 |
improved formatting
|
| S Dec 4, 2014 at 12:15 | history | suggested | Erik BRB | CC BY-SA 3.0 |
improved formatting
|
| Dec 4, 2014 at 12:04 | vote | accept | Community Bot | ||
| Dec 4, 2014 at 12:00 | review | Suggested edits | |||
| S Dec 4, 2014 at 12:15 | |||||
| Dec 4, 2014 at 11:59 | answer | added | hint | timeline score: 0 | |
| Dec 4, 2014 at 11:57 | answer | added | Barmar | timeline score: 2 | |
| Dec 4, 2014 at 11:56 | comment | added | bob-fornal |
You might want to put a console.log(myDate.getTime(), date1.getTime()) to see exactly what is being compared. It might not be what you expect.
|
|
| Dec 4, 2014 at 11:56 | comment | added | Barmar | You set the hours, minutes, and seconds, but not milliseconds. | |
| Dec 4, 2014 at 11:55 | comment | added | user4323627 | functionalities are not added in the code.If its true then,some thing should be displayed | |
| Dec 4, 2014 at 11:53 | comment | added | Barmar |
What is an if loop? if is for comparing things, not looping.
|
|
| Dec 4, 2014 at 11:52 | comment | added | bob-fornal |
Have you used console.log to show the results for both .getTime() functions?
|
|
| Dec 4, 2014 at 11:52 | review | First posts | |||
| Dec 4, 2014 at 11:53 | |||||
| S Dec 4, 2014 at 11:49 | review | Triage | |||
| Dec 4, 2014 at 11:57 | |||||
| S Dec 4, 2014 at 11:49 | history | asked | user4323627 | CC BY-SA 3.0 |