Quantcast
Channel:
Viewing all articles
Browse latest Browse all 43798

Wiki Page: How can I achieve the time format XX:XX:XX with AM or PM specified?

$
0
0
The GetCurrentTime() function returns the time in the format XX:XX:XX, but it does not return the AM / PM indicator. This particular format can be achieved using the FormatDateTime function, as follows: Print(FormatDateTime(GetCurrentDate(), GetCurrentTime(), "%I:%M:%S %p", sDateTime)); Where I = the hour in 12-hour format M = the minute as a decimal number S = the second as a decimal number p = the current locale"s AM / PM indicator for 12-hour clock. It is also important to note that these are case-sensitive, so please ensure the correct case is used in order to achieve the correct information. For more information on the functions involved please refer to the Silk Performer Help (SILK PERFORMER | HELP | ABOUT) Old KB# 17923

Viewing all articles
Browse latest Browse all 43798

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>