first commt
This commit is contained in:
7
resources/js/customPrototypes.ts
Normal file
7
resources/js/customPrototypes.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
interface Date {
|
||||
toSQLDate(): string,
|
||||
}
|
||||
|
||||
Date.prototype.toSQLDate = function (): string {
|
||||
return (new Date(this)).toISOString().split('T')[0]
|
||||
}
|
||||
Reference in New Issue
Block a user