Solved

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

Posted on 2012-03-19
3
686 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Html form and modal / img src -problem 3 59
Obtain data from database .mdb 4 35
Asp in server side with Mssql Server 7 4 43
CREATE DATABASE 3 45
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…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

734 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