/ Published in: ASP
URL: http://reusablecode.blogspot.com/2008/06/ampm.html
Extract the AM/PM portion from a time value.
Expand |
Embed | Plain Text
<% ' Copyright (c) 2008, www.thecanonman.com; some rights reserved. ' ' This work is licensed under the Creative Commons Attribution License. To view ' a copy of this license, visit http://creativecommons.org/licenses/by/3.0/ or ' send a letter to Creative Commons, 559 Nathan Abbott Way, Stanford, California ' 94305, USA. ' Returns either AM or PM, given a Time value. function ampm(someTime) if hour(someTime) < 12 then ampm = "AM" else ampm = "PM" end if end function %>
You need to login to post a comment.
