Is it possible to adjust the minimum and maximum values like this?
<ion-datetime displayFormat="h:mm A" min="01:30" max="09:30" pickerFormat="h mm A" minuteValues="0,30"></ion-datetime>
-- Edit (based on feedback) --
You have the option to update the min and max settings for ion-datetime before integrating them into your html code. Take a look at the following script. It utilizes moment library to manipulate the time received from the backend by adding or subtracting 30 minutes. These modified variables can then be used in the html.
import moment from 'moment';
export class HomePage {
newMin: string;
newMax: string;
constructor(public navCtrl: NavController) {
const min = "01:00"; // Data retrieved from the backend
const max = "10:00"; // Data retrieved from the backend
this.newMin = moment(min, "HH:mm").add(30, 'minutes').format('HH:mm'); // Add 30 minutes
this.newMax = moment(max, "HH:mm").subtract(30, 'minutes').format('HH:mm') // Subtract 30 minutes
}
}
Now you can utilize these variables in the html markup
<ion-datetime displayFormat="h:mm A" [min]="newMin" [max]="newMax" pickerFormat="h mm A" minuteValues="0,30"></ion-datetime>