Contents
Display Legacy Contents

 Print
    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.

     
Example 1
  Example 2
  Example 3
TimeToString("093015", "HH:MM:SS")

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

Result = 09:30

  TimeToString("093015", "HH")

Result = 09

         
Example 4  
   
TimeToString("093015", "MM")

Result = 03

 
   

See also
Samples

 
Updated: 3/21/2018 4:27 PM