Closed TheNemus closed 4 years ago
Please try to import MAT_DATE_FORMATS from saturn-datepicker
Could you be a little more clear? Import where? To use in which way?
@TheNemus instead of import { NativeDateModule, MAT_DATE_FORMATS, DateAdapter } from '@angular/material/core'; try to import { NativeDateModule, MAT_DATE_FORMATS, DateAdapter } from 'saturn-datepicker';
Thamk you, now the IsoDateAdapter
is being called.
Last question is: what method I have to re-implement in order to get an ISO8601 date in the model?Cause the format
method only change the way the date is displayed.
model operates with the JS Date object. You can the method .toISOString()
env: @angular/core 9.0.1 @angular/cli 9.0.1
Hi, I want to have back an ISO8601 string date from saturn-dp. I followed this tutorial working-with-custom-dateadapter-for-angular-material-2-datepicker
but my adapter is not even called:
Module:
injected in my feature module.
What am I missing?