subMinutes
Modified on Tue, 22 Aug 2023
Description
Use this function to subtract the specified number of minutes from the given date.
Syntax
subMinutes(date, number)
Returns
Return Value | Description |
---|---|
Date | Returns the resulting date after subtracting the specified number of minutes. |
Sample
Example | Result | Description |
---|---|---|
subMinutes (2023-04-08 12:00:00, 30) | 2023-04-08 11:30:00 | Returns the output as 2023-04-08 11:30:00 after subtracting 30 minutes from the input date (2023-04-08 12:00:00). |
To view all the Date functions, click here.
See Also
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article