K
Keith Hutchison
Hello,
I'm having a problem forcing leading zeros using the date/time format in
access.
I want to show this: 01/06/2004 <---- mm/dd/yyyy (A fixed length)
The problem is when I setup a format mask it changes to this: 1/6/2004
This is a problem because my .asp page uses the string function mid like
this: monthholder = mid(database_date, 1, 2)
if done correctly the variable monthholder should have this: 01
instead it comes back with : 1/ (because access doesn't keep the
leading zero)
GRRRRR........
I tried to setup a format mask with the Date/Time like this 99/99/9999
I also tried 00/00/0000 I also tried ##/##/####
Nothing is working. Everytime I enter a date into the field and click away
it deletes the darn zeros!!!
I've searched my heart out on all search engines and came up with nobody
experiencing the same problem. I know I could just change it to a text
format but I thought there was a performance advantage with using the
Date/Time format...
Can anybody help me?
Thanks for any/all responses.
Kind regards,
Keith
I'm having a problem forcing leading zeros using the date/time format in
access.
I want to show this: 01/06/2004 <---- mm/dd/yyyy (A fixed length)
The problem is when I setup a format mask it changes to this: 1/6/2004
This is a problem because my .asp page uses the string function mid like
this: monthholder = mid(database_date, 1, 2)
if done correctly the variable monthholder should have this: 01
instead it comes back with : 1/ (because access doesn't keep the
leading zero)
GRRRRR........
I tried to setup a format mask with the Date/Time like this 99/99/9999
I also tried 00/00/0000 I also tried ##/##/####
Nothing is working. Everytime I enter a date into the field and click away
it deletes the darn zeros!!!
I've searched my heart out on all search engines and came up with nobody
experiencing the same problem. I know I could just change it to a text
format but I thought there was a performance advantage with using the
Date/Time format...
Can anybody help me?
Thanks for any/all responses.
Kind regards,
Keith