> For the complete documentation index, see [llms.txt](https://doc.sysdevmobile.com/kalipso/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.sysdevmobile.com/kalipso/5.0/developing/form/expressions/functions/functions-descriptions/date-functions/timetostring.md).

# TimeToString

Kalipso - Form - Expressions - Functions - Functions Descriptions - Date Functions - TimeToString

This Function returns a *\<string>* which is the specified **Time** formatted with the specified **Format**. The specified **Time** must be in format HHMMSS.

### Parameters

* **Time** *\<string> -* Original string to be completed.
* **Format** *\<string> -* Choose one of the predefined options or combine HH, MM, and SS, where:
  * HH - Hour
  * MM - Minute
  * SS - Second

### Examples

* *Example 1*

TimeToString("093015", "HH:MM:SS")\
**Result** = 09:30:15

* *Example 2*

TimeToString("093015", "HH:MM")\
**Result** = 09:30

* *Example 3*

TimeToString("093015", "HH")\
**Result** = 09

* *Example 4*

TimeToString("093015", "MM")\
**Result** = 03
