Classic ASP - get the first and last day of the current year

How can I get the first and last days of the current year?  I need to store the first day in 'start_date' and the last in 'end_date' two 'Dims' in my page.
jamesdean666Asked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
Big MontyConnect With a Mentor Senior Web Developer / CEO of ExchangeTree.org Commented:
start_date = CDate( "1-1-" & Year( Now ) )
end_date = CDate( "12-31-" & Year( Now ) )
0
 
Big MontySenior Web Developer / CEO of ExchangeTree.org Commented:
you actually dont need the CDate, if you just want to store them as strings. CDate just allows you to manipulate them as date objects
0
 
jamesdean666Author Commented:
Thanks much.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.