I do not like the standard datetime picker from the PowerApps toolbox. So instead I would like to use just a standard textbox with some RegEx. For some reason when I run this in the textbox OnChange I always am getting the notification warning. Can I get another pair of eyes on this and see what might be wrong?
If(
!IsMatch(txtClearanceDateTime.Text, "^([1-9]|([012][0-9])|(3[01]))[- /.]([0]{0,1}[1-9]|1[012])[- /.]\d\d\d\d (20|21|22|23|[0-1]?\d):[0-5]?\d$,"),
Notify("You entered an invalid date/time format, please enter value in mm/dd/yyyy hh:mm format", NotificationType.Warning);Reset(txtClearanceDateTime)
)

Report
All responses (
Answers (