Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Convert a Numeric Month Value to a full Date Value

Status
Not open for further replies.

jaaret

Instructor
Joined
Jun 19, 2002
Messages
171
I have a combo box that lists the months values: 1-12. How can I extrapolate that into a date value representing the first of the month?

'Concatonate month with text to create a date string
=([cboMonth] & "/1/2008")

How can I combine this with the DateValue function to convert the resulting string to a true date value?

Jaaret
 
You can use DateSerial:

dteDate=DateSerial(2008,MonthVar,1)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top