Time function, displaying AM PM 
Author Message
 Time function, displaying AM PM

Whenever I attempt to insert the current 'time' into a
form text box, the AM or PM sign is not displayed. Then
when I insert the time value inside the text box into a
Access table, the time is displayed as AM.

Any ideas how I can get this ASP page to display the PM or
AM sign inside the form text box?

i'm using the following code to insert time:

<input type="text" name="Time" size="15" value=<%
=FormatDateTime(time, vblongtime)%>>



Mon, 01 Mar 2004 08:21:34 GMT  
 Time function, displaying AM PM
DayOrNight = Right(Now(), 2)
literally ;)

Bryan Martin


Quote:
> Whenever I attempt to insert the current 'time' into a
> form text box, the AM or PM sign is not displayed. Then
> when I insert the time value inside the text box into a
> Access table, the time is displayed as AM.

> Any ideas how I can get this ASP page to display the PM or
> AM sign inside the form text box?

> i'm using the following code to insert time:

> <input type="text" name="Time" size="15" value=<%
> =FormatDateTime(time, vblongtime)%>>



Mon, 01 Mar 2004 10:01:41 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Format date/time in DTPicker to display AM/PM or 24 hour time

2. displaying time as 8:00 PM

3. datepart("h", mytime), problem with AM and PM

4. AM/PM vs 24H

5. Inserting some junk in the place of AM/PM

6. Display Time Function (from seconds)

7. Auto time/bill, PM for programmers.

8. Help displaying remaining time until time X

9. Which function can show 'AM' or 'PM'?

10. Showing the time where I am

11. Regular expression - It should be easy, but I am having a bad time

12. Display a Label in front of a Frame / How to display a time

 

 
Powered by phpBB® Forum Software