|
@@ -7,13 +7,13 @@ const DATE_TIME_FORMAT = 'YYYY-MM-DD HH:mm';
|
|
|
const DATE_FORMAT = 'YYYY-MM-DD ';
|
|
|
|
|
|
export function formatToDateTime(
|
|
|
- date: moment.MomentInput = null,
|
|
|
+ date: moment.MomentInput = undefined,
|
|
|
format = DATE_TIME_FORMAT
|
|
|
): string {
|
|
|
return moment(date).format(format);
|
|
|
}
|
|
|
|
|
|
-export function formatToDate(date: moment.MomentInput = null, format = DATE_FORMAT): string {
|
|
|
+export function formatToDate(date: moment.MomentInput = undefined, format = DATE_FORMAT): string {
|
|
|
return moment(date).format(format);
|
|
|
}
|
|
|
|