-
time help
How can I get rid of the 00 in 3:45:00 PM? I know there isnt a quick solution as I hear, but is there?!
Chris.Martz.me
Some things Man was never meant to know. For everything else, there's Google.
-
You don't seem very resourceful.
Look for the second colon, and erase it and the next two characters.
-
You don't seem very resourceful.
Look for the second colon, and erase it and the next two characters.
-
Why did you have to post that twice? Also, how do I look for the second colon?
Chris.Martz.me
Some things Man was never meant to know. For everything else, there's Google.
-
Sorry. I was having browser problems.
I don't know what language you're using, but isn't there a "search" feature for strings? If not, why not write your own?
Or... if the language has built in date/time capabilities, write your own time-to-string function.
-
That is why I am posting in the ASP section of this forum, because I program in ASP.
Chris.Martz.me
Some things Man was never meant to know. For everything else, there's Google.
-
Are you using ASP scripts? If so, I can help.
Dan
Professional Web Management
Content Management Specialists

-
I figured out the coding and used:
Code:
<%
Dim DT,Length,TheTime,AMPM
DT = rs.fields("time_posted")
Length = LEN(DT)
TheTime = LEFT(DT, Length - 6)
AMPM = RIGHT(DT, 2)
DT = TheTime + " " + AMPM
Response.Write DT
%>
Chris.Martz.me
Some things Man was never meant to know. For everything else, there's Google.
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
|
Bookmarks