Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid Jalali year -100721 in dp-date-picker #118

Open
babakir opened this issue Feb 23, 2020 · 0 comments
Open

Invalid Jalali year -100721 in dp-date-picker #118

babakir opened this issue Feb 23, 2020 · 0 comments

Comments

@babakir
Copy link

babakir commented Feb 23, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant