Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 71531

Date picker date is not refreshing properly

$
0
0

@varunproid wrote:

im able to select February 31 from the date picker … this happen only when i select march 31 then again i go to February i was able to select . How to restrict or Refresh this…?

date

startdate;
endDate;
maxDate = moment.utc().add(90, ‘d’).format(‘YYYY-MM-DD’);
minStartDate(): string {
return moment().format(‘YYYY-MM-DD’);
}
minEndDate(): string {
return moment(this.startdate).add(0, ‘day’).format(‘YYYY-MM-DD’);
}
changeEndDate(): void {
if (moment(this.startdate).isSameOrAfter(this.endDate)) {
this.endDate = moment(this.startdate).add(0, ‘day’).format(‘YYYY-MM-DD’);
}
}

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 71531

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>