Striping a Date from a Date/Time Field

  • Thread starter Thread starter Laura G
  • Start date Start date
L

Laura G

How would you strip a date off of a date/time field?

I tried to use the datePart() function, but it will only
return one of the parts, not the entire date.

Any ideas would be helpful.

Thanks.
 
Laura G said:
How would you strip a date off of a date/time field?

I tried to use the datePart() function, but it will only
return one of the parts, not the entire date.

Any ideas would be helpful.

DateValue()

Keep in mind that what this really does is change the time to midnight
(zero). A Date DataType always has a time element, but midnight can be
more easily ignored.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top