Skip to content

Commit

Permalink
Change format of date to dashes and add space between date and time #2
Browse files Browse the repository at this point in the history
Changed the format of how timestamps date is displayed from being split by slashes to dashes. Added a space in between the date and time of the timestamp.
  • Loading branch information
Jack Perala committed Mar 28, 2020
1 parent d3465b7 commit 7a2b589
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/app/notes/note.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ export class NoteService {
// Create an array with the current hour, minute and second
const time: Array<string> = [ String(now.getHours()), String(now.getMinutes()), String(now.getSeconds())];
// Return the formatted string
return date.join('/') + time.join(':');
return date.join('-') + ' ' + time.join(':');
}
}

0 comments on commit 7a2b589

Please sign in to comment.