Functions - Date

ASP
Dates are very commonly used in programming - to compare start dates and end dates, to keep track of days that have passed, and more. Here are date functions to work with date variables.

ASP Date and Time Function List star
One of the main things ASP is used for is handling date and time functions. Here are a list of function calls that help you show the current date and perform other date and time calculations.

DateAdd Date Function star
The DateAdd functon lets you add a certain amount of time to any date. You can determine what will be a week from now, what was 3 days ago, or any other difference.

DateDiff Date Function star
With DateDiff, you can determine the difference between two dates. This lets you see how long it´s been since someone last logged in and much more.

Day ASP Date Function star
The Day function in ASP lets you find out what day in the current month it is. If the current date is January 3, then the Day function will return 3.

MonthName Date Function star
If you´ve got a date and want to display the real world name of that month to display, the monthname function is what you want.

Now ASP Date Function star
The ASP function called Now is very simple - it returns back to you the current system date and time.

Editor's Picks Articles
Top Ten Articles
Previous Features
Site Map







Content copyright © 2018 by . All rights reserved.
This content was written by . If you wish to use this content in any manner, you need written permission. Contact Lisa Shea for details.