setDate
Modified on Tue, 22 Aug 2023
Description
Use this function to set the day of the month to the given date.
Syntax
setDate(date, dayOfMonth)
Returns
Return Value | Description |
---|---|
Date | Return the resulting date. |
Sample
Example | Result | Description |
---|---|---|
setDate(2023-3-1, 15) | 2023-3-15 | Returns the output as 2023-3-15. |
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