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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

dateserial function

Status
Not open for further replies.

swamy567

Programmer
Sep 18, 2008
24
US
just date serial function
this shows 07/31/08 how come july has 31 days. what is the error in below one.
LastDay = Day(DateSerial(intOriginYear, intOriginMonth + 1, 0))
Msgbox LastDay
 
sorry i missed another line
LastDay = Day(DateSerial(intOriginYear, intOriginMonth + 1, 0))
Date = intOriginMonth & "/" & LastDay & "/0" & intOriginYear
Msgbox Date
 




" how come july has 31 days?"

Because...

<drum roll>
[red]
it ACTUALLY does!
[/red]


Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top