From e4d525dd25ed22aaac98b90d9e79ee7f3509ae73 Mon Sep 17 00:00:00 2001 From: Jack Perala Date: Mon, 30 Mar 2020 22:07:43 -0500 Subject: [PATCH] Change timestamp method to get day of the month #2 Changed the timestamp method in the note service to get the day of the month instead of the day of the year --- client/src/app/notes/note.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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