close ad
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Formatting date 11/11/11 gives 11/11/1911 instead of 2011

Thread began 7/30/2010 12:22 pm by amucino12002 | Last modified 8/03/2010 11:05 am by amucino12002 | 2662 views | 8 replies

Ray BorduinWebAssist

Unfortunately this is how both client and server side javascripts interprit 2 digit years.

The convention is to use 4 digit years after the year 2000... so any 2 digit years it assumes are from the 1900's.

You say that the year 11 should logically be 2011, but that isn't true if you are asking for a birth date. Also consider all of the years where the year 11 logically meant 1911... it was like that untill the great Y2K scare. Since nobody wanted to go back and correct all of the dates in the past, the solution is to always use a 4 digit date moving forward.

My best suggestion is to use a 4 digit date and to require one. The only other solution would be to create a custom script that parsed the entered date as a string and converted 2 digit dates to 4 digit dates automatically, but we don't supply that code so it would have to be custom written.

Did this help? Tips are appreciated...

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...