(
date,
options = {
day: "2-digit",
month: "short",
year: "numeric",
}
)
| 37 | date: string, |
| 38 | options?: Intl.DateTimeFormatOptions |
| 39 | ) => string = ( |
| 40 | date, |
| 41 | options = { |
| 42 | day: "2-digit", |
| 43 | month: "short", |
| 44 | year: "numeric", |
| 45 | } |
| 46 | ) => { |
| 47 | const d = new Date(date); |
| 48 | return d.toLocaleString("en-US", options); |
| 49 | }; |
| 50 | |
| 51 | export const convertTime: (time: string) => string = (time) => |
| 52 | dayjs(time, "HH:mm").format("HH:mm"); |
no outgoing calls
no test coverage detected