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
↧