Login | |
|
 |
Re: DOB to your Age - 4/11/2005 8:03:09 AM
|
|
 |
|
| |
Snipah
Posts: 1343
Score: 6
Joined: 11/1/2004
From: Netherlands
Status: offline
|
How would you type out the format of the Date var? In Europe we use a different format then in the US..
|
|
| |
|
|
|
 |
Re: DOB to your Age - 4/12/2005 1:05:28 AM
|
|
 |
|
| |
Country73
Posts: 733
Score: 10
Joined: 8/25/2004
From: USA
Status: offline
|
Don't forget to add: Dim dttToday
|
|
| |
|
|
|
 |
Re: DOB to your Age - 4/12/2005 2:03:32 AM
|
|
 |
|
| |
Zifter
Posts: 318
Score: 0
Joined: 1/5/2005
From: Belgium
Status: offline
|
quote: but the Day and Months were in reverse order, format should be MM/dd/yyyy
Date formats differ from country to country, so in case of the HTML inputfields, you can put them in any order that suits you (that is why I added "(DD/MM/YYYY)" behind the last inputfield) In case of the CDate function, it depends on the Windows settings. In some countries you'll need to enter the date in the format MM/DD/YYYY in other countries in the format DD/MM/YYYY, in again other countries ... That is why I used dttBirth = CDate(intYear & "/" & intMonth & "/" & intDay), because I think this works independent of the Windows settings... I could be wrong ... edit:Just found out there exists a function DateSerial(Year,Month,Day). This function converts string or integers to a variant of subtype Date. http://www.devguru.com/Technologies/vbscript/quickref/dateserial.html
|
|
| |
|
|
|
 |
Re: DOB to your Age - 4/13/2005 7:40:30 AM
|
|
 |
|
| |
Snipah
Posts: 1343
Score: 6
Joined: 11/1/2004
From: Netherlands
Status: offline
|
thanks Zifter, as an European you hit the nail on the head...at least mine...lately i must do alotta scripting in MEL (for Alias Maya) so that got me confused for other "simple" VBScript functions. I was indeed looking for the way you could push a "European" input to all this here.... -lol-
|
|
| |
|
|
|
|
|