Home  |  Latest News  |  Contribute  |  F.A.Q.  |  Account  |  Scripts | About
Search ASPNut:
 
ASP Reference
Server Variables
ASP Glossary
Related Sites

Free Components

HTML Reference
Web Colors
Entities
CSS Level 1
Encode/Decode
Glossary

Our Sponsors
ASP Nuke CMS
Free Auctions
PHP 5 Script
Funktastic Blog
ULost Directory
Team Task

 

 

 

 

 

 

 

 

 

 

 

 

DatePart

The DatePart function allows to extract a single piece of information from a date or datetime value. This is extremely useful if you are working with dates and need to take them apart and examine individual parts of the date.

Dim nDay, nMonth, nYear

nDay = DatePart("d", Now())
nMonth = DatePart("m", Now())
nYear = DatePart("yyyy", Now())


Unit Meaning
d Day
m Month
yyyy Year
q Quarter
w Weekday
ww Week of Year
h Hour
n Minute
s Second


Orvado Technologies

ASP Nuke CMS
Free Open Source
Content Manager
HomeFix Boards
Home Remodeling
Message Boards

Contact Us | Contribute | About | Site Map



"All programmers are playwrights and all computers are lousy actors." - Anon

©2007 Orvado Technologies, All Rights Reserved
ASP Nut provides articles and reference documentation for Active Server Page developers.