Solved

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

Posted on 2012-03-19
3
630 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 32

Accepted Solution

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

Expert Comment

by:Big Monty
Comment Utility
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
Comment Utility
Thanks much.
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
How to solve this equation 3 47
Prevent URL from printing on header 5 60
XML Parsing Classic ASP 5 42
ASP Button to clear text 4 15
Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

744 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now