1
 Follower
15
 Likes

Time: remove seconds (or format strings)

Service Studio
On our radar
The functions DateTimeToTime() and\or FormatTime() could have an optional argument to hide the seconds from the time.

Transform this:
09:30:00

Into this:
09:30

Or, Service Studio could use format strings:

Replace this function:
FormatTime(value, time_separator)

With this:
FormatTime(value, format_string)

Ex.:  FormatTime(#2015-03-13 09:30:00#, "HH:mm")

This would return just "09:30"

For reference:
https://msdn.microsoft.com/en-us/library/8kb3ddd4(v=vs.110).aspx
 
Created on 13 Mar 2015
Comments (2)
That could indeed be useful. We've created a wrapper around the .NET date/time (and other) formating in an exension, but having it natively would be preferable.
That was what I also did, but a built in function would be a better solution.
views
440
Followers
1