---
title: MCEXT.DATETIMEPICKER
description: "![](https://aspi-gmbh.de/wp-content/uploads/2026/02/image-20.png) ```javascript //Scriptfunktion 'MCEXT.DATETIMEPICKER' //Öffnet einen Dialog zur Auswahl eines Datums. //Alle Parameter sind optional. //Parameter: //1) Titel //Textzeile oben im Fenster. //2) StartDatum //Initiales Datum (TT.MM.JJJJ). //Wenn leer, wird das heutige Datum verwendet. //3) MinDatum //Frühestes wählbares Datum. //Format:…"
url: "https://aspi-gmbh.de/docs/mcext-datetimepicker/"
updated: "2026-02-06"
category: "SDK / Scriptengine / Script-Functions / Dialoge"
---

# MCEXT.DATETIMEPICKER

![](https://aspi-gmbh.de/wp-content/uploads/2026/02/image-20.png)

```javascript

                //Scriptfunktion 'MCEXT.DATETIMEPICKER'
//Öffnet einen Dialog zur Auswahl eines Datums.

//Alle Parameter sind optional.
//Parameter:
//1) Titel
//Textzeile oben im Fenster.
//2) StartDatum
//Initiales Datum (TT.MM.JJJJ).
//Wenn leer, wird das heutige Datum verwendet.
//3) MinDatum
//Frühestes wählbares Datum.
//Format: TT.MM.JJJJ
//4) MaxDatum
//Spätestes wählbares Datum.
//Format: TT.MM.JJJJ
//5) SamstagNein
//true / 1
//Wenn gesetzt, kann kein Samstag gewählt werden.
//6) SonntagNein
//true / 1
//Wenn gesetzt, kann kein Sonntag gewählt werden.
//7) FontSize
//Schriftgröße des Dialogs.
//Titel ist automatisch FontSize + 2.
//8) BackColor
//Hintergrundfarbe in HEX.
//Beispiel: #E6F3FF
//9) ForeColor
//Schriftfarbe in HEX.
//Beispiel: #50608F

//Rückgabe:
//Ausgewähltes Datum (TT.MM.JJJJ)
//Abbruch: Leerstring

//Beispiel:
DO{}
	MYDATE=MCEXT.DATETIMEPICKER{Datum wählen,31.12.2025,01.01.2020,31.12.2030,true,true,12,#E6F3FF,#203040}
	IFBLOCK{MYDATE!}
		EXIT{}
	ENDIF
LOOP{}
DLG=DLGMESSAGE{{MYDATE}}
```
