W3Schools Learner's Blog

w3Schools programming knowledge summary website

div

2/06/2018

DevExpress DateEdit format - How to set the dd/MM/yyyy mask

how can i set the display of my dateedit textbox to dd/MM/yyyy? you should  set the dd/MM/yyyy mask.


To format DevExpress DateEdit , set the required mask as follows:
  1. My_DateEdit.Properties.Mask.MaskType = DevExpress.XtraEditors.Mask.MaskType.DateTime
    My_DateEdit.Properties.Mask.EditMask = "dd/MM/yyyy"
    My_DateEdit.Properties.Mask.UseMaskAsDisplayFormat = True

No comments:

Post a Comment

Note: only a member of this blog may post a comment.