DatePart Question

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there a function to change or modify a date "04/26/04" to the Month End
date "04/30/04" for the Month part of the original date.

In other words, change the date to the Month End date of the Month Part.

Thanks,

ET
 
If you've got a date dtmMyDate, you can get the last day of that month using

DateSerial(Year(dtmMyDate), Month(dtmMyDate) + 1, 0)
 

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