We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2795aa9 commit 6490751Copy full SHA for 6490751
src/internal/toDate.ts
@@ -2,7 +2,7 @@
2
* Converts date passed as a string, number or Date to a Date object.
3
* If nothing or a non parseable value is passed, takes current date.
4
*
5
- * @param date Date
+ * @param date The input to convert to a date.
6
*/
7
export function toDate(date?: string | Date | number): Date {
8
date = new Date(date);
0 commit comments