Solved

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

Posted on 2012-03-19
3
660 Views
Last Modified: 2012-06-22
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.
0
Comment
Question by:jamesdean666
  • 2
3 Comments
 
LVL 33

Accepted Solution

by:
Big Monty earned 500 total points
ID: 37739373
start_date = CDate( "1-1-" & Year( Now ) )
end_date = CDate( "12-31-" & Year( Now ) )
0
 
LVL 33

Expert Comment

by:Big Monty
ID: 37739378
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
 

Author Closing Comment

by:jamesdean666
ID: 37739399
Thanks much.
0

Featured Post

ScreenConnect 6.0 Free Trial

Check out the updates in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI that improves session organization and overall user experience. See the enhancements for yourself!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question