How to remove minutes from current time?

Hi,

There is the column which type is a DateTime, and the initial value is now(). How to remove minutes from current time?

ex) 2024-07-03 15:33 => 2024-07-03 15:00

Thanks.

subtract the minute.

example

DATETIME((NOW()-MINUTE(NOW()))

@jaichith Thanks your reply.

It does’ t work.
There is an error message: Parameter 1 of function MINUTE is of the wrong type.

Thanks.

DATETIME(
DATE(NOW()) & " " &
TEXT(HOUR(TIME(NOW()) - β€œ00:00:00”)) & β€œ:00:00”
)

1 Like
DATETIME(
  DATE(NOW()) & " " &
  TEXT(HOUR(TIME(NOW()) - "00:00:00")) & ":00:00"
)

It works. Thank you so much.

1 Like

Welcome !!! :blush: