<%=time()%>
- - Get current time
- - e.g. 9:52:30 AM
<%=date()%>
- - Get current date
- - e.g. 7/11/2008
<%=now()%>
- - Get current date and time
- - e.g. 7/11/2008 9:54:03 AM
<%=FormatDateTime(now,0)%>
- - e.g. 7/11/2008 9:55:41 AM
<%=FormatDateTime(now,1)%>
- - e.g. Friday, July 11, 2008
<%=FormatDateTime(now,2)%>
- - e.g. 7/11/2008
<%=FormatDateTime(now,3)%>
- - e.g. 9:57:49 AM
<%=FormatDateTime(now,4)%>
- - e.g. 09:58
<%=WeekDay(now)%>
- - Day of the week
- - e.g. 6
<%=WeekDayName(WeekDay(now))%>
- - e.g. Friday
<%=Day(date)%>
- - Day of the month
- - e.g. 11
<%=Month(date)%>
- - Month of the year
- - e.g. 7
<%=MonthName(Month(date))%>
- - e.g. July
<%=Year(date)%>
- - Current year
- - e.g. 2008
<%=Right(Year(date),2)%>
- - Current year
- e.g. 08
<%=Hour(now)%>
- - Hour part
- - e.g. 10
<%=Minute(now)%>
- - Minute part
- - e.g. 11
<%=Second(now)%>
- - Second part
- - e.g. 2
Hope you will find this helpful.
2 comments:
It looks like all of these would display the 'server' date and times correct?
Do you know any VBScript that will display the 'clients' date and time?
I have an email form that people will fill out that I need the date and time to be in the email submission but all that i've found only send through the server time.
thanks in advanced!
You can use a javascript, coz this runs in the client browser. Here are some of the examples that you can refer to:
1. Displaying the client's current date and time
2. Display client's PC Date & Time
Post a Comment