[V4-beta.7] ion-datetime not bind as ISO-8601 format
See original GitHub issueBug Report
Ionic Info
Ionic:
ionic (Ionic CLI) : 4.1.1 (/Users/joeldaros/.nvm/versions/node/v8.11.3/lib/node_modules/ionic)
Ionic Framework : @ionic/angular 4.0.0-beta.7
@angular-devkit/core : 0.7.5
@angular-devkit/schematics : 0.7.5
@angular/cli : 6.1.5
@ionic/ng-toolkit : 1.0.7
@ionic/schematics-angular : 1.0.5
Cordova:
cordova (Cordova CLI) : 8.0.0
Cordova Platforms : ios 4.5.5
Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.2, cordova-plugin-ionic-webview 2.0.2, (and 7 other plugins)
System:
ios-deploy : 2.0.0
NodeJS : v8.11.3 (/Users/joeldaros/.nvm/versions/node/v8.11.3/bin/node)
npm : 6.4.0
OS : macOS High Sierra
Xcode : Xcode 9.4 Build version 9F1027a
Describe the Bug
The ion-datetime
component do not bind his value to a ISO-8601 format when changed. It binds the date to a object:
{
"dateBk": {
"day": { "text": "21", "value": 21, "columnIndex": 0 },
"month": { "text": "Aug", "value": 8, "columnIndex": 1 },
"year": { "text": "2017", "value": 2017, "columnIndex": 2 }
}
}
Example:
The initial date (ISO-8601) of component is correct:
When you pick another date from the component it binds to a object instead of a string in 8601 format like described in documentation:

Steps to Reproduce Steps to reproduce the behavior:
- Change the date from the ion-datetime component
- Check the results.
Related Code
Issue Analytics
- State:
- Created 5 years ago
- Reactions:13
- Comments:11 (1 by maintainers)
Top Results From Across the Web
[V4-beta.7] ion-datetime not bind as ISO-8601 format #15408
Steps to reproduce the behavior: Change the date from the ion-datetime component; Check the results. Related Code. https://github.com/MrSparklle ...
Read more >Ionic Please provide a valid ISO 8601 datetime format ...
I am trying to bind my Ionic DateTime component ...
Read more >BUG: ion-datetime not in ISO 8601 Format - Ionic Forum
I am NOT getting the ISO 8601 Datetime Format: YYYY-MM-DDTHH:mmZ from the ion-datetime control. According to the docs for ion-datetime ionic ...
Read more >Ionic Forum - Latest topics - RSSing.com
This command is not working with IONIC-v4-BETA, please help on this issue, ... I'm getting this error “Please provide a valid ISO 8601...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Any idea on when this will be fixed?
This issue has been fixed in https://github.com/ionic-team/ionic/pull/15833 and https://github.com/ionic-team/ionic/pull/15907 released in (Beta-13).