Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49259

New ion-datetime how to detect local and how to change date format?

$
0
0
<ion-datetime [value]="eventResult.event.occurredDate" #input formControlName="occurredDate" size="cover" showDefaultButtons="true"
                                              (click)="setPrePickerValue('occurredDate')" locale="en-AU" presentation="date-time" (ionChange)="dateChanged('occurredDate', input.value)" [max]="getMaxYear()">
                                </ion-datetime>

How do I make the picker say 9:36am instead of 1:36am here? Also how do i format the displayed string so that it’s 02-Feb-2024 9:36 ?

2 posts - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 49259

Trending Articles



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