How to close the ion-datetime modal


i dont know how to close this ion-datetime automatically after selecting month and year in my ionic app.

let’s suppose your modal has the name dateTimeModal

		<ion-popover #dateTimeModal trigger="open-date" size="cover">
						<ng-template>
							<ion-datetime  [multiple]="false" first-day-of-week="1"
								 #dateTimeGiornoRistorante
								presentation="date"
								 (ionChange)="DO YOUR THINGS, SET THE VALUE ETC... 
THEN CALL THIS ...
...dateTimeModal.dismiss();" updateCalendarView()">
							</ion-datetime>
						</ng-template>
					</ion-popover>