PDA

View Full Version : Write AM or PM part of time script (ASP)


isaaclloyd
05-10-2005, 08:13 PM
I am trying to just write the AM or PM part of time to a page and am having trouble... I got the time part all set up and was wondering if there is a way to detect whether it is am or pm and write it. Any comments or suggestions is greatly apreciated. Thanks.


~Isaac~

Freon22
05-10-2005, 09:06 PM
Hope this helps

Dim AMPM
AMPM = Right(Time,2)
Response.Write(AMPM)

This will print out the am or pm of time