| Time and Date Functions ASP Script - ASP Web Pro |
|
ASP ScriptsTIME AND DATE FUNCTIONSTime and date functions allow you to customize your web pages in many different ways. Here are some of the most commonly used time and date functions:
The DateValue function converts an expression into a date subtype. In this example, it returns the value "9/30/1970".
The Day function extracts the day value from a date expression. In this example, it returns the value "30".
The Weekday function extracts the day value from a date expression. In this example, it returns the value "4".
The Month function extracts the day value from a date expression. In this example, it returns the value "9".
The Year function extracts the day value from a date expression. In this example, it returns the value "1970"
The Now function returns the current date and time according to the current setting of the computer or server. In this example, it returns the value " 10/05/2008 00:50:22 ".
The Time function returns the current time according to the current settings. In this example, it returns the value " 00:50:22 ".
The Hour function returns the current time according to the current settings. In this example, it returns the value " 0 ".
The Minute function returns the current time according to the current settings. In this example, it returns the value " 50
The Second function returns the current time according to the current settings. In this example, it returns the value " 22 "
|
||||||||||||
|
Main Menu Other Resources
Last Updated:
|
||||||||||||
|
© 1997-2008 ASP Web Pro, Inc. | Terms of Use
|