setMinutes
Modified on Tue, 22 Aug 2023
Description
Use this function to set the minutes to the given date.
Syntax
setMinutes(date, minutes)
Returns
Return Value | Description |
---|---|
Date | Return the resulting date. |
Sample
Example | Result | Description |
---|---|---|
setMinutes(2023-4-9 9:30, 45) | Sun Apr 09 2023 09:45:00 GMT-0700 (Pacific Daylight Time) | Returns the output as Sun Apr 09 2023 09:45:00 GMT-0700 (Pacific Daylight Time). |
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