Hi.. again this has got to be easy but RingTFM isn't helping...
I have a DateEntered field in my database as: m/d/yyyy hh:mm:ss
I want to take that date, strip the time and add a number of days.
I've tried using (thanks bgaines72)
FormatDateTime(DateEntered, vbShortDate) but that changes it to a char field???
I'm about at the end of my tether here...(and its too early for beer)
I did try the ol'
dayenter = day(DateEntered) etc but when I add them back together
DateEntered = yearenter & monthenter and dayenter I end up with 200333 (rather than 20030303) which doesn't help with comparisons etc... I don't really wanna see if day <10 and add 0 to the start... and am not sure if it would work??
Any ideas appreciated
Thanks
I have a DateEntered field in my database as: m/d/yyyy hh:mm:ss
I want to take that date, strip the time and add a number of days.
I've tried using (thanks bgaines72)
FormatDateTime(DateEntered, vbShortDate) but that changes it to a char field???
I'm about at the end of my tether here...(and its too early for beer)
I did try the ol'
dayenter = day(DateEntered) etc but when I add them back together
DateEntered = yearenter & monthenter and dayenter I end up with 200333 (rather than 20030303) which doesn't help with comparisons etc... I don't really wanna see if day <10 and add 0 to the start... and am not sure if it would work??
Any ideas appreciated
Thanks