jalali-angular-datepicker icon indicating copy to clipboard operation
jalali-angular-datepicker copied to clipboard

Invalid Jalali year -100721 in dp-date-picker

Open babakir opened this issue 5 years ago • 0 comments

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 :

`

{{ customerTdf.tdf.created_at | date: 'yyyy/MM/dd' }} `

The date that come from db is like‍‍‍‍‍‍ :‍‍‍‍‍‍‍398-11-30T19:36:44+03:25 ‍‍‍‍‍‍‍‍‍‍ ‍‍‍‍‍‍‍‍‍‍‍thanks for your help

babakir avatar Feb 23 '20 08:02 babakir