Intersoft ClientUI Documentation
UXDateTimeEditor Class
Members 



Represents a masked textbox control that accepts standard and custom DateTime .NET format.
Object Model
UXDateTimeEditor ClassISFramework Class
Syntax
Remarks

UXDateTimeEditor has two date time format that you can set from EditMask and DisplayMask property. The format specified in EditMask is used during editing mode and teh format specified in DisplayMask is used to display the formated date time value.

If you want to use the EditMask as DisplayMask you can set the UseEditMaskAsDisplayMask to True. By enabling this property, UXDateTimeEditor will ignore the DisplayMask value if it is filled.

Edit mode is triggered if the UXDateTimeEditor has focus and is not readonly. By default the caret is positioned at the first editable position. Display mode is triggered if the UXDateTimeEditor does not has focus.

The UXDateTimeEditor accept standard and custom .NET DateTime format in the EditMask and DisplayMask. Some of the format is not parsed in EditMask because it is only used as a DisplayMask.

Standard Format

Valid EditMask Format Specifier Description
V d Short date pattern.
V D Long date pattern.
V f LFull date/time pattern (short time).
V F Full date/time pattern (long time).
V g General date/time pattern (short time).
V G General date/time pattern (long time).
V M, m Month/day pattern.
V O, o Round-trip date/time pattern.
V R, r RFC1123 pattern.
V s Sortable date/time pattern.
V t Short time pattern.
V T Long time pattern.
V u Universal sortable date/time pattern.
X U Universal full date/time pattern.
V Y, y Year month pattern.

Custom Format

Format Specifier Description
d The day of the month, from 1 through 31.
dd The day of the month, from 01 through 31.
ddd The abbreviated name of the day of the week.
dddd The full name of the day of the week.
f The tenths of a second in a date and time value.
ff The hundredths of a second in a date and time value.
fff The milliseconds in a date and time value.
ffff The ten thousandths of a second in a date and time value.
fffff The hundred thousandths of a second in a date and time value.
ffffff The millionths of a second in a date and time value.
fffffff The ten millionths of a second in a date and time value.
F If non-zero, the tenths of a second in a date and time value.
FF If non-zero, the hundredths of a second in a date and time value.
FFF If non-zero, the milliseconds in a date and time value.
FFFF If non-zero, the ten thousandths of a second in a date and time value.
FFFFF If non-zero, the hundred thousandths of a second in a date and time value.
FFFFFF If non-zero, the millionths of a second in a date and time value.
FFFFFFF If non-zero, the ten millionths of a second in a date and time value.
g, gg The period or era.
g, gg The period or era.
h The hour, using a 12-hour clock from 1 to 12.
hh The hour, using a 12-hour clock from 1 to 12.
H The hour, using a 24-hour clock from 0 to 23.
HH The hour, using a 24-hour clock from 00 to 23.
K Time zone information.
m The minute, from 0 through 59.
mm The minute, from 00 through 59.
M The month, from 1 through 12.
MM The month, from 01 through 12.
MMM The abbreviated name of the month.
MMMM The full name of the month.
s The second, from 0 through 59.
ss The second, from 0o through 59.
t The first character of the AM/PM designator..
tt The AM/PM designator.
y The year, from 0 to 99.
yy The year, from 00 to 99.
yyy The year, with a minimum of three digits.
yyyy The year as a four-digit number.
yyyyy The year as a five-digit number.
z Hours offset from UTC, with no leading zeros.
zz Hours offset from UTC, with a leading zero for a single-digit value.
zzz Hours and minutes offset from UTC.
: The time separator.
/ The date separator.
"string", 'string' Literal string delimiter.
% Defines the following character as a custom format specifier.
\ The escape character.

 

Example
XAML
Copy Code
<Intersoft:UXDateTimeEditor Width="200" Height="24" EditMask="dd/MM/yyyy" DisplayMask="yyyy MMMM dd"/>
Inheritance Hierarchy

System.Object
   System.Windows.DependencyObject
      System.Windows.UIElement
         System.Windows.FrameworkElement
            System.Windows.Controls.Control
               System.Windows.Controls.TextBox
                  Intersoft.Client.Framework.ISTextBox
                     Intersoft.Client.UI.Controls.UXTextBox
                        Intersoft.Client.UI.Aqua.UXInput.UXMaskedInputBase
                           Intersoft.Client.UI.Aqua.UXInput.UXMaskedInputGenericBase<T>
                              Intersoft.Client.UI.Aqua.UXInput.UXDateTimeEditor

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

UXDateTimeEditor Members
Intersoft.Client.UI.Aqua.UXInput Namespace

Send Feedback