I'm not sure why you wish to pull the date appart but if you still have a reference to the original date, or can put it back together you can use datediff() function.
x = datediff("d",date1,date2)
this will return the number of days between the dates.
0 means today
1 tomorrow
-1 yesterday
etc
======================================
They say, best men are molded out of faults,
And, for the most, become much more the better
For being a little bad.
======================================
|