ng-dynamic-forms
ng-dynamic-forms copied to clipboard
trying to create bootstrap datepicker from json shows `invalid date` instead of the date in its value property
I'm submitting a
[x ] Bug / Regression
[ ] Feature Request / Proposal
I'm using
NG Dynamic Forms Version: `8.1.0`
[ ] Basic UI
[ x] Bootstrap UI
[ ] Foundation UI
[ ] Ionic UI
[ ] Kendo UI
[ ] Material
[ ] NG Bootstrap
[ ] Prime NG
Description
I'm trying to create a bootstrap datepicker from json but instead of showing the date of the supplied value, it just shows invalid date in the input
here is the json im using to create it, am I missing something?
I'm trying to do this in the Bootstrap sample
{
"asyncValidators":null,
"errorMessages":null,
"hidden":false,
"id":"bsDatePicker",
"label":"Datepicker",
"labelTooltip":null,
"controlTooltip":null,
"layout":null,
"name":"bsDatePicker",
"relations":[
],
"updateOn":null,
"validators":null,
"disabled":false,
"additional":{
"containerClass":"theme-red"
},
"hint":null,
"required":false,
"tabIndex":null,
"value":"2019-07-28T16:02:57.075Z",
"format":null,
"max":null,
"min":null,
"placeholder":"Pick a date",
"type":"DATEPICKER",
"autoFocus":false,
"focusedDate":null,
"inline":false,
"prefix":null,
"readOnly":false,
"toggleIcon":null,
"toggleLabel":"Open",
"suffix":null
} ```