feat: implement adding movie details from tmdb
This commit is contained in:
4
lib/string.ts
Normal file
4
lib/string.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
export function formatDate(date: Date): string {
|
||||
const options = { year: "numeric", month: "long", day: "numeric" } as const;
|
||||
return new Intl.DateTimeFormat("en-US", options).format(date);
|
||||
}
|
||||
Reference in New Issue
Block a user