vbnetcoder
asked on
VB.net date code
What does this code do?
dtEnd = DateSerial(Year(dtSomethin g) - 5, Month(dtSomething), Day(dtSomething))
dtEnd = DateSerial(Year(dtSomethin
ASKER
so basicly it returns the date five years earlier?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
ty
Thanks
It subtracts five from the year portion then reconstitutes the date from the new year value and the same day and month