cancel
Showing results for 
Search instead for 
Did you mean: 
intapiuser
Community Team Member
Community Team Member
Question: I have to do a MAX(<ColumnName><of DateTimeFormat>) in the dashboard.
The main thing here is that I have to have the last second entry for that specific field
Solution: We suggest you would use a float numeric representation of the date, adding the minutes and seconds AFTER the dot.
For instance, the date "4/21/20 12:36:56 AM" would become: 2012042100.3656
(In this case, if you'd use a integer representation, the result number will be bigger than an integer and it won't work.)
In order to do it, please use this function:
getyear(DateTime)*1000000+getmonth(DateTime)*10000+getday(DateTime)*100+gethour(DateTime)+ToDouble(GetMinute(DateTime))/100+ToDouble(GetSecond(DateTime))/10000
Version history
Last update:
‎03-02-2023 08:33 AM
Updated by:
Contributors
Community Toolbox

Recommended quick links to assist you in optimizing your community experience:

Product Feedback Forum:

Need additional support?:

Submit a Support Request

Sisense Privacy Policy