J
JL
I need to compare two times. The problem I have is this:
In my code I create a time variable using the format statement below:
dim firstTime as DateTime
fistTime = Format("12:00:00 AM", "T")
I then store this in an Access database DateTime field.
When I read it back from the DatTime field. The values do not compare.
When I display the two values using Messagebox.Show, I find that the
variable created with the format statement is in the form:
1/1/001 12:00 AM
and the one read from the Access table is in the form:
12/30/1899 12:00 AM
So my question is how can I format these so I can make a comparison?
Is this a common issue?
TIA,
John
In my code I create a time variable using the format statement below:
dim firstTime as DateTime
fistTime = Format("12:00:00 AM", "T")
I then store this in an Access database DateTime field.
When I read it back from the DatTime field. The values do not compare.
When I display the two values using Messagebox.Show, I find that the
variable created with the format statement is in the form:
1/1/001 12:00 AM
and the one read from the Access table is in the form:
12/30/1899 12:00 AM
So my question is how can I format these so I can make a comparison?
Is this a common issue?
TIA,
John