Object Model Reference : Classes : C : CorelScriptTools : Methods : CorelScriptTools.FormatTime |
Function FormatTime(Time As Date, Format As String) As String
Member of CorelScriptTools
• |
You can insert spaces and punctuation between time elements within the
formatting string. See the example that follows.
|
In the following code example, the first line declares the date variable TodayDate. This variable is then assigned the current date and time with the GetCurrDate function. The StringTime variable is then assigned the current time using h:mm pm formatting.
DIM TimeNow AS DATE |
TimeNow = GETCURRDATE() |
StringTime = FORMATTIME (TimeNow, "HH:mm:ss tt") |
MESSAGE StringTime |
Copyright 2013 Corel Corporation. All rights reserved.