Customizing Features for Your Practice > Using PracticeScript > Using Functions
The Time functions category has one subcategory that deals with conversions. The following time conversion functions are available:
TimeStr
|
Function |
TimeStr |
|
Location in PracticeScript |
Functions->Time functions->Conversion |
|
Purpose |
To convert a time to a human readable character string. |
|
Format |
TimeStr(NumericTime) TimeDate is any PracticeScript expression that represents a time. |
|
Evaluates to |
A character string formatted as a time. |
|
Example |
TimeStr(Appt.StartTime,0) Returns the string in regular hourly time, such as 11:00 or 2:30. |
SortTimeStr
|
Function |
SortTimeStr |
|
Location in PracticeScript |
Functions->Time functions->Conversion |
|
Purpose |
To convert a time to a readable character string suitable for sorting. Time conversions result in 24-hour time format, so that A.M and P.M. times are discernable. |
|
Format |
SortTimeStr(NumericTime) NumericTime is any PracticeScript expression that represents a time. |
|
Evaluates to |
A character string formatted as a time, but uses the 24-hour format, or military time, such as 1400 for 2:00 P.M., so that no time is repeated for any date. |
|
Example |
SortTimeStr(Appt.StartTime) Returns the time of the appointment. |