# toTime

toTime() function is the Standard function available in 200OK.

**Description** : The toTime function modifies the time part of a datetime value according to the specified format.

**Syntax** : fx\_toTime(mention the time,ss:mm;HH;SSS)

**Example** : fx\_toTime(03:12:11:09,ss:mm:HH:SSS) would modify the time to "09:12:03:11", following the format specified.

Here we go with simple scenario using the above function.

**Scenario** : In a scheduling application, users need to adjust the time format of events to adhere to specific requirements. They employ a function to modify the time part of datetime values according to specified formats. For instance, using fx\_toTime(03:12:11:09,ss:mm:HH:SSS) would modify the time to "09:12:03:11", ensuring compatibility with the desired time format.

\
**Request Side** :&#x20;

<figure><img src="https://lh7-us.googleusercontent.com/5fyTMn_8ppTCeEhJ-XbwBCSHujrx_M-VseyWtDDWx0joaQUxehnPD9KSPZF428cEANyzcj6jPRhiXx_xCSWR_R1wzAZAmAKcM0jkJHcCC36lKh8lHuuDAUL1kLzNT-S8cht8vf9ooG0Nbnwa6oNTeg8" alt=""><figcaption></figcaption></figure>

**Response Side** :&#x20;

<figure><img src="https://lh7-us.googleusercontent.com/IaZleEMR-qaroO11nTgdkiKuRFRWCk4ZcmSCDiAyDmyc-Cm2ERODUAI7USGbUgb96E7jtRgJlcCC8ap_aVDubl8yjyX1Te75mKQrhg3pHB8lvzGeeqwJNZ-kHMQcsTdW4WFwysQ8Q2LHtFOgbXBl1Xs" alt=""><figcaption></figcaption></figure>

<figure><img src="https://lh7-us.googleusercontent.com/kX9wSP8565L7ndL9qM-7V53Bovleky5i5wskN1PtjulrtJzs1OJTMSIEn2TdzxyrrrOWrQetyziE2mbBOC6xQnrCnwPGmylngOnR46ZETizRRSjjVhzMcMteFMa5x4ATeqnJuOvPStdoezApP3MHaSs" alt=""><figcaption></figcaption></figure>
