Version

XamDateTimeInput Class

Allows editing of date and/or time based on a mask.
Syntax
'Declaration
 
Public Class XamDateTimeInput 
   Inherits Infragistics.Controls.Editors.XamMaskedInput
   Implements Infragistics.ICommandTarget 
public class XamDateTimeInput : Infragistics.Controls.Editors.XamMaskedInput, Infragistics.ICommandTarget  
Remarks

XamDateTimeInput can be used to edit a date and/or time. Based on the value of the Infragistics.Controls.Editors.XamMaskedInput.Mask property, it can edit date, time or both date and time. The following are some example masks:

  • {date} - Date mask based on short date pattern setting of the system.
  • {time} - Time mask based on short time pattern setting of the system. Short time pattern typically does not include seconds portion.
  • {longtime} - Time mask based on long time pattern setting of the system. Long time pattern typically includes seconds portion.
  • {date} - Creates a date only mask based on the short date pattern.
  • {time} - Creates a time only mask based on the short time pattern.
  • {longtime} - Creates a time only mask based on the long time pattern, which typically includes seconds.
  • {date} {time} - Creates a date and time mask based on the short date and short time patterns.
  • mm/dd/yyyy - Creates a date only mask. Note: This mask specifies the exact order of day, month and year explicitly. The underlying culture settings will not be used to determine the order of day, month and year section.

See help for Infragistics.Controls.Editors.XamMaskedInput.Mask property for a listing of all the supported masks, including ones that are relevant for date and time.

By default the current culture settings will be used to determine the format of date and time. However you can override that by setting the Infragistics.Controls.Editors.ValueInput.FormatProvider and Infragistics.Controls.Editors.ValueInput.Format properties. If FormatProvider is set then the mask and the formatting will be based on the settings provided by FormatProvider. Otherwise the formatting will be based on the current culture. Note: the Format property only controls what gets displayed when the control is not in edit mode. See Infragistics.Controls.Editors.ValueInput.Format for more information.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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

XamDateTimeInput Members
Infragistics.Controls.Editors Namespace
Infragistics.Controls.Editors.XamMaskedInput.Mask
Infragistics.Controls.Editors.ValueInput.Value
Infragistics.Controls.Editors.ValueInput.ValueType
Infragistics.Controls.Editors.ValueInput.FormatProvider
Infragistics.Controls.Editors.ValueInput.Format