DataTime type default the time part

0
Hi, I have a filed with DateTime type, but only show the date part to let user to pick, and i need to default the time to the end of day time (23:59:59), is there a simple way to do that? Looks like it is defaul to the current time (the time part)   Thanks Shannon
asked
1 answers
1

You can set the hours / minutes with the functions addMintes() and addHours(), see: https://docs.mendix.com/refguide/add-date-function-calls

 

So you could use something like this:

addMinutes(addHours(trimToDays($datetime/attribute), x),  x)

 

Also, check out this post where similiar answers were offered: https://forum.mendix.com/link/questions/568 

answered