diff --git a/src/utils.js b/src/utils.js index 9c696df..ba0f9f5 100644 --- a/src/utils.js +++ b/src/utils.js @@ -5,7 +5,7 @@ export const dateToString = (date) => { }; export const fullDateToString = (date) => { - return ("0" + date.getDate()).slice(-2) + '.' + ("0" + (date.getMonth()+1)).slice(-2) + '.' + date.getFullYear(); + return dateToString(date) + '.' + date.getFullYear(); };