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?
 
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
All Courses

From novice to tech pro — start learning today.