Solved

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

Posted on 2012-03-19
3
644 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
ID: 37739373
start_date = CDate( "1-1-" & Year( Now ) )
end_date = CDate( "12-31-" & Year( Now ) )
0
 
LVL 32

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
show region if a selection is made on a drop down menu 3 56
ASP Classic - Load test 2 44
Adding Datediff to staistics page 2 49
SQL to update characters in table column 6 81
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…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

947 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

21 Experts available now in Live!

Get 1:1 Help Now