Datetime should be refreshed based on changes and max/min
See original GitHub issueHi! 🙆♂️
Bug Report
Ionic version:
[x] 4.x
Current behavior:
Would be cool if datetime will be updated when I change a year - the component should show then show all months. Today is 22 march so it means that if the user changes year to 2000 then he can use to use all months (in my case for maxdate = adult date [now - 18 years]).
Steps to reproduce:
- Datetime with maxdate to date - 18 years. I use moment for this
adultDate = moment().add(-18, 'years'); // use .toDate() or .format() depending of your needs
Related code:
btw: please prepare StackBlitz template
Other information:
Ionic info:
Ionic:
ionic (Ionic CLI) : 4.12.0 (/usr/local/lib/node_modules/ionic)
Ionic Framework : @ionic/angular 4.1.1
@angular-devkit/build-angular : 0.13.6
@angular-devkit/schematics : 7.2.4
@angular/cli : 7.3.6
@ionic/angular-toolkit : 1.2.3
Cordova:
cordova (Cordova CLI) : 8.1.2 (cordova-lib@8.1.1)
Cordova Platforms : android 7.1.4, ios 4.5.5
Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 2.4.0, (and 12 other plugins)
System:
Android SDK Tools : 26.1.1 (/Users/rafalschmidt/Library/Android/sdk)
ios-deploy : 1.9.4
ios-sim : 7.0.0
NodeJS : v10.15.3 (/usr/local/bin/node)
npm : 6.4.1
OS : macOS Mojave
Xcode : Xcode 10.1 Build version 10B61
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
DateTime.{max, min} doesn't return DateTime object but a ...
As said in the title, when I want to retrieve the min or max of a list of ISO formatted strings, the method...
Read more >How do you get a REFRESH DATE in your Power BI report???
Have you wondered how to get a refresh date in your Power BI report? Adam looks at an easy way to do ......
Read more >Code for Last Refresh Date/Time (EST)
A calculated table is evaluated when it's created or the dataset is refreshed. After published to service, NOW() will always return a UTC...
Read more >Show the refresh date\time in a Power BI report and dashboard
Now every time the model gets refreshed this datetime gets updated to show you the current datetime (as in datetime of the refresh)....
Read more >New Max/Min Aggregate Measure for Date and Datetime ...
Max/Min of Date Simple Examples In this section, I will show you a few ways of using the Max or Min of a...
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 FreeTop 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
Top GitHub Comments
@liamdebeasi I tested the new dev branch and this appears to be working well.
Hi there,
Thanks for the issue. We have merged in some datetime fixes and pushed a nightly build. recently Would you be able to install the nightly and see if you are still running into these issues (
npm i @ionic/core@dev @ionic/angular@dev
)? Thanks!