I am newbie to Angular and Firebase, but really liking it so far. The thing is I am stuck for 2 days in the date format, which must be easier. I am confused on datepicker. I am using:
<material-datepicker [(ngModel)] =“member.joineddate”>
While I use this, firebase saves the date as: Nov 24, 2017 at 12:00:00AM UTC…
How do I save just the date as, 11-24-2017 in firebase. I am showing the saved date in my view and in return whole timestamp value shows up. That looks quite bizarre, I just want to show the date. I should further be comparing the dates with the today’s date also, so having just the date could be more easier.
Anyone has any idea on this? Sorry, if this is too rookie one, having that burnout phase.