Is there a way to display the year, month, day, hours, minutes, and seconds in the input field of my material datepicker?
I have successfully customized the parse()
and format()
methods in my own DateAdapter
using native JavaScript objects.
However, I am now considering using Moment.js. I have configured the MomentDateAdapter
and MAT_MOMENT_DATE_FORMATS
following the official tutorial.
How can I adjust the formatting of my dates using Moment.js? Do I need to override the format()
and parse()
methods again by extending the MomentDateAdapter
?