committed by
Bastian
parent
e0113c446d
commit
dc84d19236
@@ -3,5 +3,5 @@ import moment from "moment";
|
||||
const isoDateToMoment = (isoDate: moment.MomentInput) =>
|
||||
moment(isoDate, "YYYY-MM-DD");
|
||||
|
||||
export const formatRelease = (isoDate: moment.MomentInput) =>
|
||||
isoDateToMoment(isoDate).format("MMMM YYYY");
|
||||
export const formatRelease = (isoDate: moment.MomentInput, format: string = "MMMM YYYY") =>
|
||||
isoDateToMoment(isoDate).format(format);
|
||||
|
||||
Reference in New Issue
Block a user