materialdatepicker

How to format Angular Material date-picker inside Formly form for service layer (not display format)

杀马特。学长 韩版系。学妹 提交于 2021-02-11 06:51:25
问题 I would like to expose my date value as date only ("yyyy-MM-dd") on an Angular Material date picker. Currently, the default date value is an ISO format (includes time). I have a starter Stackblitz project with the the required setup. The formly-datepicker.type is where I would like to centralize the conversion so that any date used in the model will be formatted properly for the service layer. One of my attempts to accomplish it in a centralized manner is using the Angular