Change DateTime Format While Retaining the DateTime Data Type
45
Views
2
Comments
New
Builtin & User functions

Currently, the FormatDateTime() function formats a DateTime value based on the specified format, but the result is returned as Text. This requires additional conversions when the value needs to be used in date calculations, sorting, filtering, or database operations.

It would be beneficial to have a function that allows formatting a DateTime value while retaining its DateTime data type, reducing unnecessary conversions and simplifying date handling.

but the only point of the FormatDateTime() is to create a string representation of it.  If you need to do date calculations, why not just use the original DateTime itself ?

Changed the category to
Builtin & User functions