Linda
2004-11-01 12:51:30 UTC
Hi all,
I have a simple problem. I understand that the system date is in the format
mm/dd/yy.
Now in my VB application, I am converting the format entered by the user to
this mm/dd/yy type using CDate.
But the CDate function doesn't seem to work properly.
If suppose I enter 05/11/2001, which should be read as 11 May, is being
taken as 5 Nov. This problem does not occur if either of the two (month or
date) is larger than 12. for eg, 1/14/2001 will always be taken as 14th of
January.
Any ideas how to overcome this issue?
Thanks a lot !
I have a simple problem. I understand that the system date is in the format
mm/dd/yy.
Now in my VB application, I am converting the format entered by the user to
this mm/dd/yy type using CDate.
But the CDate function doesn't seem to work properly.
If suppose I enter 05/11/2001, which should be read as 11 May, is being
taken as 5 Nov. This problem does not occur if either of the two (month or
date) is larger than 12. for eg, 1/14/2001 will always be taken as 14th of
January.
Any ideas how to overcome this issue?
Thanks a lot !