Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Do you have to declare your date in this way? You can provide a number of different strings to the Date() function to be more specific.</p> <p>Examples:</p> <pre><code>var d1 = new Date('January 1, 1970'); // Date as a parse var d2 = new Date(0); // Date as a julian number var d3 = new Date(1970, 0, 1); // Date as arguments </code></pre> <p><a href="http://www.hunlock.com/blogs/Javascript_Dates-The_Complete_Reference" rel="nofollow noreferrer">http://www.hunlock.com/blogs/Javascript_Dates-The_Complete_Reference</a></p> <p>So if you're relying on user input into text boxes, provide a TextBox for the month, one for the year, etc. Or use drop-down lists, since that's a very standard method for asking for date information. Then use the d3 example above.</p> <p><strong>*Edit - added after seeing the comment. *</strong></p> <p>Sorry that won't work. I really want to help out here, but I'm lacking information at this point..</p> <p>OK.. So here's the next silly question I have.. If it's a read-only textbox, the data in the textbox has got to be coming from somewhere... Either a database, or some posted form, etc. Can this be handled server-side? Either format the date before it's output OR parse it with server-side code after it's submitted?</p> <p>I'm not sure what tools you're using, but there must be a solution. You may be right, however, in there not being a way to do it in JavaScript. It would be very helpful if your you also had a way to determine the time zne and culture, so you would have a starting point with working on figuring what format the date string is in.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload