Here's a piece of code I use for just this problem:
Dim daypart As Integer
Dim monthpart As Integer
Dim yearpart As Integer
'breaking apart the dates
daypart = DatePart("d", theDate)
monthpart = DatePart("m", theDate)
yearpart = DatePart("yyyy", theDate)
'doing a check for dates like...