# TimeToString

> Kalipso 5.0 documentation · https://doc.sysdevmobile.com/kalipso/5.0/developing/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
