logo
g Text Version
Beauty & Self
Books & Music
Career
Computers
Education
Family
Food & Wine
Health & Fitness
Hobbies & Crafts
Home & Garden
Money
News & Politics
Relationships
Religion & Spirituality
Sports
Travel & Culture
TV & Movies

dailyclick
Bored? Games!
Nutrition
Postcards
Take a Quiz
Rate My Photo

new
Creativity
Family Travel
Southwest USA
Irish Culture
Home Finance
Comedy Movies
Romance Novels


dailyclick
All times in EST

Clairvoyance: 08:00 PM

Full Schedule
g
g ASP Site

BellaOnline's ASP Editor

g

ASP Date and Time Function List

Guest Author - Lisa Shea

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.

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.

Introduction to ASP Ebook

Download this ebook to get everything you need to know about learning ASP - from a step by step tutorial to function lists, sample code, common errors and solutions, and much more! 101 pages.
This site needs an editor - click to learn more!

Add ASP+Date+and+Time+Function+List to Twitter Add ASP+Date+and+Time+Function+List to Facebook Add ASP+Date+and+Time+Function+List to MySpace Add ASP+Date+and+Time+Function+List to Del.icio.us Digg ASP+Date+and+Time+Function+List Add ASP+Date+and+Time+Function+List to Yahoo My Web Add ASP+Date+and+Time+Function+List to Google Bookmarks Add ASP+Date+and+Time+Function+List to Stumbleupon Add ASP+Date+and+Time+Function+List to Reddit




RSS | Related Articles | Editor's Picks Articles | Top Ten Articles | Previous Features | Site Map


For FREE email updates, subscribe to the ASP Newsletter


Past Issues


print
Printer Friendly
bookmark
Bookmark
tell friend
Tell a Friend
forum
Forum
email
Email Editor


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

g


g features
Best uses for RSS

RSS and its future.

Force Download Dialog box with ASP

Archives | Site Map

forum
Forum
email
Contact

Past Issues
memberscenter


vote
Poetry
Daily
Weekly
Monthly
Less than Monthly



BellaOnline on Facebook
g


| About BellaOnline | Privacy Policy | Advertising | Become an Editor |
Website copyright © 2014 Minerva WebWorks LLC. All rights reserved.


BellaOnline Editor