[Gambas-user] re: re: AM/PM?
Scott Castaline
hscast at ...407...
Tue Oct 18 16:15:49 CEST 2005
John Rittinghouse wrote:
> Paul,
>
> Here is a short console program that should help on the AM/PM
> question. Sorry this was not included on the last posting.
> regards
> jr
>
> --------------------
>
> STATIC PUBLIC SUB Main()
> DIM dTime AS Date
>
> dTime = Time(13, 24, 00)
> PRINT Format(Now, "hh:nn:AM/PM")
> PRINT Format(dTime, "hh:nn:AM/PM")
> END
>
>
You can also do it this way:
STATIC PUBLIC SUB Main()
DIM dTime AS Date
dTime = Time(13, 24, 00)
PRINT Format(Now, "hh:nn AM/PM")
PRINT Format(dTime, "hh:nn AM/PM")
END
The colon between min ?M is removed giving a more normal appearance.
Scott Castaline
More information about the User
mailing list