These are handy VBScript functions that allow us to easily access date and times. They return a value taken from the computer's system clock.
The date is: 13/03/2010
The time here in Ireland is: 17:42:52
The date and time is: 13/03/2010 17:42:52
Notice that all the functions above haven't any parameters passed in unlike the Hour function below.
The Hour function returns a number between 0 and 23 that represents the hour of the day.
The hour here is: 17
Other date and time related tutorials:
Here's a code snippet to display the day
and date (eg. Mon 25 December).
Here's a code snippet to display the day
and date with the ordinal suffix (eg. Mon 25th December).
How to get the current month
name
Display the dates and times
Time and Date based greetings
IsDate Function
The
DateDiff DateAdd and DatePart Functions
Plug and play ASP membership script that integrates with PayPal to let you charge recurring membership fees.
Get your best asp web hosting provider now and save 25%