Articles in this section

How to set date and time mask in Xamarin.Forms Masked Entry control

This article explains how to set Mask as date and time using the Syncfusion Xamarin.Forms SfMaskedEdit with the following steps:

  

Step 1: Create a SfMaskedEdit control with all the necessary assemblies.

Refer to this Getting started documentation, to create a simple SfMaskedEdit and configure it.

 

Step 2: By using the Mask property of the SfMaskedEdit, you can mask the input. Please refer to the following code sample, to initialize the SfMaskedEdit control with Mask and Watermark properties.

 

[XAML]

<maskededit:SfMaskedEdit Mask="00/00/0000 00:00:00" Watermark="MM/dd/yyyy HH:mm:ss" /> 

 

Output

Output image of the SfMaskedEdit with date and time

See also

 

What are mask types in SfMaskedEdit

 

How to hide the prompt character

 

How to hide the clear button in SfMaskedEdit

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Access denied
Access denied