ASP Is Fun

Learning ASP
Free ASP Course
ASP Basics
ASP Functions
SQL Commands
Sample ASP Code


Servers / Setup
ASP Host Reviews
ASP Server Setup
ASP Error Tips


Contract ASP
ASP Development

Search For:


Intro to ASP


 


ASP Date and Time Function List



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.

Simple "What Date/Time Is It" Functions

Date
This function simply returns to you the current date, according to your computer's system clock.

Now
This function gives you the full date and time according to the web server.

Getting Parts of a Given Date

Second
This function gives you the second value (0 to 59) of the current date/time.

Minute
This function gives you the minute (0 to 59) of a given date/time.

Hour
This function gives you the military time (0 to 23) a given date/time is.

Day
This function lets you know what day (from 1 to 31) a given date is.

Weekday
This function gives you a number (0 to 6) representing the current weekday.

Month
This function gives you the month (1 to 12) of a given date/time.

Year
This function gives you the year part of the date/time.

DatePart
DatePart lets you choose any part of a date to grab.

Getting the Name of a Date Part

WeekdayName
This function gives you the name of the week.

MonthName
This function returns the actual name of the month of a given date/time.

Date Calculations

DateAdd
The DateAdd function helps you determine what 3 days from today are, or 2 weeks ago, or any other date difference from a starting date.

DateDiff
Looking to determine how much time has elapsed between two dates? This function will let you know.

ASP Function List



Bookmark this site so you can reference it any time you have ASP questions in the future!

Add ASP+Functions+ to Twitter Add ASP+Functions+ to Facebook Add ASP+Functions+ to MySpace Add ASP+Functions+ to Del.icio.us Digg ASP+Functions+ Add ASP+Functions+ to Yahoo My Web Add ASP+Functions+ to Google Bookmarks Add ASP+Functions+ to Stumbleupon Add ASP+Functions+ to Reddit



 


Get Emails when this Site is Updated



ASP Ebooks | Free ASP Course |
All content copyright 2013 Minerva WebWorks LLC. All rights reserved.

Irish Wedding

Free Newsletter!

Ebooks
Intro to ASP
ASP SQL DB
ASP Members
ASP Shopping


Introduction to ASP

ASP Poll
How do you handle 500 errors?
I don't
Page does nothing
Displays error
Emails error



affiliate_link