Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | 1x 1x 1x 6x 6x | export function getConvertedDataTime(dateObject: string): string { const date = new Date(dateObject); /** * its return type date * And its object type */ return date.toLocaleDateString("en-US", { year: "numeric", month: "long", day: "numeric", hour: "numeric", minute: "numeric", second: "numeric"} ); } export function getAsset(path:string){ return process.env.NEXT_PUBLIC_BASEURL+path; } |