Bill Moore
Registered User.
- Local time
- Today, 20:02
- Joined
- Dec 11, 2003
- Messages
- 51
I'm using the DatePart function to extract month, day, and year from a date/time data type date.
Question is: How do I extract these pieces and put them back together as a date/time expression so I don't get "data type mismatch" when trying a subsequent compare with another date? My expression looks like this:
Date1: DatePart("m", bcdate) & "/" & DatePart("d", bcdate) & "/" & DatePart ("yyyy", bcdate)
Thx.
Question is: How do I extract these pieces and put them back together as a date/time expression so I don't get "data type mismatch" when trying a subsequent compare with another date? My expression looks like this:
Date1: DatePart("m", bcdate) & "/" & DatePart("d", bcdate) & "/" & DatePart ("yyyy", bcdate)
Thx.