George-Bowyer
Registered User.
- Local time
- Today, 04:50
- Joined
- Dec 21, 2012
- Messages
- 178
I think that a hazy light might be starting to peek through the clouds of ignorance...
I don't think I've been understanding exactly how and when I was doing that.
So if I now understand this right, the line:
datStartDate1 = Format(datStartDate1, "mm/dd/yyyy")
is taking a date variable, converting it into a string and then converting it back into a date variable - all in the same line of code?
I think I wasn't really understanding properly that Format returns a string - even though I said that I did - I think I thought it just changed how the date was displayed.
My fault for trying to do this at midnight on a Sunday. Less database - more sleep...
You keep casting a string into date. You cannot do that
I don't think I've been understanding exactly how and when I was doing that.
So if I now understand this right, the line:
datStartDate1 = Format(datStartDate1, "mm/dd/yyyy")
is taking a date variable, converting it into a string and then converting it back into a date variable - all in the same line of code?
I think I wasn't really understanding properly that Format returns a string - even though I said that I did - I think I thought it just changed how the date was displayed.
My fault for trying to do this at midnight on a Sunday. Less database - more sleep...