Display the Date and Time

Well, guess nothing is easier than this. But it's a good way to get started! Be aware that the time is NOT the client's local time -- it's the time of the server.

The Code

Current time is <%=Time%><br />
 Date is <%=Date%><br />
 Tomorrow is <%=Date + 1%><br />
 Today is <%=WeekdayName(Weekday(Date))%><br />
 Tomorrow is <%=WeekdayName(Weekday(Date+1))%>

The Result

Current time is 2:14:32 PM
Date is 11/14/2018
Tomorrow is 11/15/2018
Today is Wednesday
Tomorrow is Thursday


ASP active server pages date and time date time asp howto reference examples samples source code demos tips


Back To Top
© 1998 - 2018 psacake.com | My3C's

Version 7.2 | Advertise on this site