Articles in this section

How to set date and time mask in .NET MAUI Masked Entry?

The .NET MAUI Masked Entry allows you to apply masks tailored for various input scenarios, including date and time formatting.
In your XAML file, add the Masked Entry control and set its Mask property to the desired date and time format. This format uses placeholders to represent day, month, year, hours, minutes, and seconds.

XAML

<editors:SfMaskedEntry WidthRequest="300" HeightRequest="50" Mask="00/00/0000 00:00:00">
</editors:SfMaskedEntry> 

Output

Screenshot 2023-12-14 165106.png

Conclusion

I hope you enjoyed learning how to set up a date and time mask in .NET MAUI Masked Entry.

Refer to our .NET MAUI Masked Entry feature tour page to learn about its other groundbreaking feature representations. You can explore our .NET MAUI Masked Entry documentation to understand how to present and manipulate data.

For current customers, check out our .NET MAUI components from the License and Downloads page. If you are new to Syncfusion®, try our 30-day free trial to check out our .NET MAUI Masked Entry and other .NET MAUI components.

Please let us know in the comments section if you have any queries or require clarification. You can also contact us through our support forums, Direct-Trac, or feedback portal. We are always happy to assist you!

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