Converting Integer Month/Year to Date

K

Kirk P.

Is there a function or anything else I can do to convert a
Year and Month field to a date formatted to the last day
of the month?

For example, I am looking for:

Year Month Date
2003 1 1/31/2003
2003 2 2/28/2003
2003 3 3/31/2003

Any help would be appreciated!

Thanks
 
D

Douglas J. Steele

DateSerial(YearValue, MonthValue + 1, 0) will return the last day of the
month represented by MonthValue
 

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

Top