jalali-angular-datepicker
jalali-angular-datepicker copied to clipboard
Invalid Jalali year -100721 in dp-date-picker
I'm using ng2-jalali-date-picker
in angular 8 and select data from db and show on a table,I need to edit some records and show selected record fields on a form with db-date-picker component but in date filed that map to db-date-picker occur ERROR Error: Invalid Jalali year -100721
.
<dp-date-picker dir="rtl" [config]="datePickerConfig" mode="daytime" theme="dp-material custome-date" formControlName="time" name="created_at"> </dp-date-picker>
public datePickerConfig = { format: 'yyyy/MM/dd' }
The field on table :
`
The date that come from db is like :398-11-30T19:36:44+03:25
thanks for your help