Incorrect date returned in Word

J

John B.

In a Word-based form requesting information, I have several Month/Year date
fields using the format 'm/yyyy'. If the user enters a date such as 5/98 for
May 1998, the field returns 5/1998 as expected. If a user enters a 2-digit
year above 1999, the field returns the current year; i.e. 4/04 returns
4/2009. How do I code the field so years later than 1999 are returned
correctly?
 
M

macropod

hi John,

Without seeing the code you're using it's hard to say. However, I suspect 4/04 is being interpreted as 4 April. That should give you
a clue as to how to fix the problem (eg ensure all dates are interpreted as being on the 1st of the month & year input).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top