juststeve
asked on
Seek function to trim seconds off vbLongTime
Someone has probably written or found a function that would strip the :00 from the end of the string returned by code like:
FormatDateTime(wDate,vbLon gTime)
FormatDateTime(wDate,vbLon
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Excellent...i find the lower case am/pm looks best:
response.write Left(theTime,Len(theTime)- 6) & (Right(theTime,2))
response.write Left(theTime,Len(theTime)-
Response.Write Mid(formatDatetime(time(),
just use the Mid() function. the logic behind is that there is always 6 characters you want strip from the right (i.e. "1:45:00 PM" --> ":00 PM")