VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Get number of days from month (one Line)

by J. Berz (1 Submission)
Category: Math/Dates
Compatability: Visual Basic 5.0
Difficulty: Beginner
Date Added: Wed 3rd February 2021
Rating: (2 Votes)

Get number of days from any date.

Inputs
ChkDate =
Code Returns
the number of days

Rate Get number of days from month (one Line)

Day(DateSerial(Year(ChkDate), Month(ChkDate) + 1, 0))
' That´s all - and supports jullian years! ;-)

Download this snippet    Add to My Saved Code

Get number of days from month (one Line) Comments

No comments have been posted about Get number of days from month (one Line). Why not be the first to post a comment about Get number of days from month (one Line).

Post your comment

Subject:
Message:
0/1000 characters