<% Response.Write DatePart("h", Time()) %>
This script displays the current hour like this: 7
<% Response.Write DatePart("n", Time()) %>
This script displays the current minute like this: 49
<% Response.Write DatePart("s", Time()) %>
This script displays the current second like this: 58
http://www.aspwebpro.com/aspscripts/dates/selectpartoftime.asp
No comments:
Post a Comment