Add the MaskDateTime web block to your module and insert the Id of the input widget you want to apply the input mask to.
Format datetime input using MaskDateTime:
There’s also an optional input parameter (KeepMask) that allows you to toggle between keeping the mask or not when the input data is send to the server. By default this parameter is set to False.The input parameter AdvancedOptions is available in all web blocks, and here you can specify other options like clearMaskOnLostFocus, which allow you to show the mask even when the input element doesn’t have focus. You will find more information about this in the GitHub component documentation.
This component uses the 5.0.8-beta.20 version of the Robin Herbots Inputmask Plugin