I want to convert "04/09/2013" to date so I can compare start date and end date like, if (stardate < enddate) { //do this } else {}. I want to convert it to MM/DD/YYYY format.
- The Overflow Blog
-
-
- Featured on Meta
-
-
-
Related
Hot Network Questions
- How to vertically centre cell content in an array
- Maximum number of potential checks each type of piece has?
- Graphing the function y=x^2sin(1/x)
- Feasibility of a thermite-based “Lava bomb”
- Changes in Firefox Credential Storage version 146.0+
- Is the 'sibling rivalry' effect balanced for the rarity?
- Is it religious or merely proper to capitalize He/His/Him in reference to God?
- Should I explain my track switch (PhD → MS) in my PhD application?
- When I bang two metal spheres together to demonstrate kinetic energy by burning paper, why don't the rest of the spheres get hot?
- Has the Trump administration ever accepted a court loss without appealing?
- convenient way to get a shell with a systemd unit file restrictions?
- How to make a Geometry Nodes counter update only every Nth frame?
- Did Bertrand Russell say that he would never die for his beliefs because they might be wrong?
- How to make Harper highlight spelling and grammar errors?
- Proof of dividing a square into six equal parts
- Is it correct English to say "go straight at + a place"?
- What type of tool do I need to turn this screw?
- As a counter to “alive,” have “adead” or “adie” ever been valid words?
- Move material to an appendix or just cite your own paper? (PhD thesis)
- Is there a "natural" example of a poset that is not a lattice?
- Story sought: language encoded in the gaps between sounds
- Problem about cyclotomic polynomials and the order of an element modulo p
- Why do _llseek and ftruncate64 have their argument order reversed from each other in Linux i386 syscall ABI?
- Is a mezuzah necessary on an interior door frame from which the door has been removed?
lang-js
dd/mm/yyyyormm/dd/yyyyformat.var d = new Date("04/09/2013");Watch out for UTC vs. Local time though. This might end up being April 9th or September 4th.