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 5a2d40c commit eda87c1Copy full SHA for eda87c1
functions/src/email/helpers.ts
@@ -24,11 +24,8 @@ export function isDefined(v: unknown) {
24
25
export function formatDate(timestamp: Date) {
26
const date = new Date(timestamp)
27
- const month = String(date.getMonth() + 1).padStart(2, "0")
28
- const day = String(date.getDate()).padStart(2, "0")
29
- const year = date.getFullYear()
30
31
- return `${month}/${day}/${year}`
+ return date.toLocaleDateString()
32
}
33
34
export function minusFour(value: number) {
0 commit comments