diff --git a/client/src/app/notes/note.service.ts b/client/src/app/notes/note.service.ts index 44fbfb5..5c97eda 100644 --- a/client/src/app/notes/note.service.ts +++ b/client/src/app/notes/note.service.ts @@ -37,7 +37,7 @@ export class NoteService { // Create a date object with the current time const now: Date = new Date(); // Create an array with the current month, day and time - const date: Array = [ String(now.getMonth() + 1), String(now.getDay()), String(now.getFullYear()) ]; + const date: Array = [ String(now.getMonth() + 1), String(now.getDate()), String(now.getFullYear()) ]; // Create an array with the current hour, minute and second const time: Array = [ String(now.getHours()), String(now.getMinutes()), String(now.getSeconds())]; // Return the formatted string