docs.devexpress.com
Open in
urlscan Pro
52.175.254.10
Public Scan
Submitted URL: http://documentation.devexpress.com/windowsforms/devexpress.xtraeditors.dateedit.class
Effective URL: https://docs.devexpress.com/WindowsForms/DevExpress.XtraEditors.DateEdit
Submission: On March 08 via manual from HU — Scanned from DE
Effective URL: https://docs.devexpress.com/WindowsForms/DevExpress.XtraEditors.DateEdit
Submission: On March 08 via manual from HU — Scanned from DE
Form analysis
0 forms found in the DOMText Content
Skip to main content Chat Now BuySupport CenterDocumentationBlogsTrainingDemosFree TrialLog In Menu WinForms Controls All docs V 22.2 * 22.2 * 22.1 * 21.2 * 21.1 * 20.2 * 20.1 * 19.2 * 19.1 * 18.2 * 18.1 * 17.2 Search: Search Search in… * DevExpress documentation only * All DevExpress web resources Docs > API Reference > DevExpress.XtraEditors > DateEdit All docs V22.2 GENERAL INFORMATION .NET SUBSCRIPTION What's Included DevExpress Installation DevExpress Code Examples COMMON TOOLS Project Converter Assembly Deployment Tool Localization Service QUALITY ASSURANCE AND PRODUCTIVITY CodeRush for Visual Studio (FREE) TestCafe Studio DESKTOP CONTROLS WinForms WPF VCL WinUI TOOLS WinForms Skin Editor WPF Theme Designer WPF Theme Editor (Legacy) Coded UI Test Extension FRAMEWORKS AND LIBRARIES XAF - Cross-Platform .NET App UI XPO - .NET ORM Library (FREE) XPO Profiler Core Libraries .NET App Security & Web API Service (FREE) WEB CONTROLS AND EXTENSIONS ASP.NET Web Forms Controls ASP.NET MVC Extensions ASP.NET Core Controls ASP.NET Bootstrap Controls DevExtreme DevExtreme ASP.NET MVC Controls Blazor Components TOOLS ASP.NET Theme Builder ASP.NET Theme Deployer MAINTENANCE MODE ASP.NET Core Bootstrap Controls MOBILE Xamarin UI Controls (FREE) .NET MAUI (FREE) ENTERPRISE AND ANALYTIC TOOLS Reporting Report and Dashboard Server BI Dashboard Office File API END-USER DOCUMENTATION Interface Elements for Desktop Interface Elements for Web Dashboard for Desktop Dashboard for Web 22.2 22.1 21.2 21.1 20.2 20.1 19.2 19.1 18.2 18.1 17.2 Filter table of contents Clear search input Full-text search WinForms Controls .NET/.NET Core Support Prerequisites What's Installed Build an Application Controls and Libraries Common Features UI Templates Get More Help API Reference DevExpress.Accessibility DevExpress.DataAccess.UI DevExpress.DataAccess.UI.Design DevExpress.DataAccess.UI.EntityFramework DevExpress.DataAccess.UI.Excel DevExpress.DataAccess.UI.MongoDB DevExpress.DataAccess.UI.ObjectBinding DevExpress.DataAccess.UI.Sql DevExpress.DataAccess.UI.Wizard DevExpress.DataAccess.UI.Wizard.Services DevExpress.DataAccess.UI.Wizard.Views DevExpress.DocumentView DevExpress.DocumentView.Controls DevExpress.LookAndFeel DevExpress.LookAndFeel.Helpers DevExpress.Skins DevExpress.Utils DevExpress.Utils.Animation DevExpress.Utils.Behaviors DevExpress.Utils.Controls DevExpress.Utils.DragDrop DevExpress.Utils.Drawing DevExpress.Utils.Filtering DevExpress.Utils.Html DevExpress.Utils.Layout DevExpress.Utils.Menu DevExpress.Utils.MVVM DevExpress.Utils.Taskbar DevExpress.Utils.Taskbar.Core DevExpress.Utils.UI.Localization DevExpress.Utils.VisualEffects DevExpress.Utils.Win DevExpress.XtraBars DevExpress.XtraBars.Alerter DevExpress.XtraBars.Docking DevExpress.XtraBars.Docking2010 DevExpress.XtraBars.Docking2010.Base DevExpress.XtraBars.Docking2010.Customization DevExpress.XtraBars.Docking2010.Views DevExpress.XtraBars.Docking2010.Views.NativeMdi DevExpress.XtraBars.Docking2010.Views.Tabbed DevExpress.XtraBars.Docking2010.Views.Widget DevExpress.XtraBars.Docking2010.Views.WindowsUI DevExpress.XtraBars.FluentDesignSystem DevExpress.XtraBars.Localization DevExpress.XtraBars.Navigation DevExpress.XtraBars.Ribbon DevExpress.XtraBars.Ribbon.Gallery DevExpress.XtraBars.Ribbon.ViewInfo DevExpress.XtraBars.ToastNotifications DevExpress.XtraBars.ToolbarForm DevExpress.XtraBars.Utils DevExpress.XtraBars.WinRTLiveTiles DevExpress.XtraCharts DevExpress.XtraCharts.Designer DevExpress.XtraCharts.Heatmap DevExpress.XtraCharts.Sankey DevExpress.XtraCharts.Wizard DevExpress.XtraDataLayout DevExpress.XtraDiagram DevExpress.XtraDiagram.Docking DevExpress.XtraDiagram.Extensions DevExpress.XtraDiagram.Options DevExpress.XtraDialogs DevExpress.XtraEditors AreaChartRangeControlClientView AutoCloseOptions BarCodeControl BaseButton BaseCheckEdit BaseCheckedListBoxControl BaseControl BaseDateControl BaseEdit BaseEditErrorImageOptions BaseImageListBoxControl BaseListBoxControl BaseSpinEdit BaseStyleControl BlobBaseEdit BreadCrumbEdit BreadCrumbHistory BreadCrumbHistoryItem BreadCrumbMode BreadCrumbNode BreadCrumbNodeCollection ButtonEdit CalcEdit ChartRangeControlClientBase ChartRangeControlClientDataProvider ChartRangeControlClientGridOptions ChartRangeControlClientRange ChartRangeControlClientView CheckButton CheckedComboBoxEdit CheckEdit CheckEdit.StateAfterIndeterminate CheckedListBoxControl ClientDataSourceProviderCustomizeSeriesEventArgs ColorDialogOptions ColorEdit ColorPickEdit ColorPickEditBase ColorPickEditTooltipShowingEventArgs ColorTooltipFormat ColumnFilterPopupMode ComboBox ComboBoxEdit ControlNavigator ControlNavigatorButtonCollection ControlNavigatorButtons CustomizeTemplatedItemEventArgs DataNavigator DataNavigatorButtonCollection DataNavigatorButtons DateControl DateEdit Members Constructors Properties Methods Events DateTimeChartRangeControlClient DateTimeChartRangeControlClientGridOptions DateTimeChartRangeControlClientRange DateTimeFunctionsShowMode DateTimeOffsetEdit DateTimeRangeControlClient DirectXForm DirectXFormBase DropDownArrowStyle DropDownButton ExpressionEditorMode FileDialogBase FilterControl FilterCriteriaDisplayStyle FilterEditorViewMode FindMode FindPanelBehavior FontEdit FormatCondition FormatConditionAboveBelowType FormatConditionAutomaticType FormatConditionCollectionBase FormatConditionComparisonType FormatConditionDataUpdateTrigger FormatConditionIconSet FormatConditionIconSetIcon FormatConditionRule2ColorScale FormatConditionRule3ColorScale FormatConditionRuleAboveBelowAverage FormatConditionRuleAppearanceBase FormatConditionRuleBase FormatConditionRuleChangeType FormatConditionRuleContains FormatConditionRuleDataBar FormatConditionRuleDataUpdate FormatConditionRuleDateOccuring FormatConditionRuleExpression FormatConditionRuleIconSet FormatConditionRuleMinMaxBase FormatConditionRuleTopBottom FormatConditionRuleUniqueDuplicate FormatConditionRuleValue FormatConditionTopBottomType FormatConditionUniqueDuplicateType FormatConditionValueType FormatRuleBase FormatRuleCollection<T, TColumnType> FormBorderEffect GridLookUpEdit GridLookUpEditBase GroupCaptionCustomDrawEventArgs GroupCaptionCustomDrawEventHandler GroupControl HighlightStyle HotTrackSelectMode HScrollBar HScrollBarBase HtmlContentControl HtmlContentPopup HyperLinkEdit HyperlinkLabelControl HyperlinkLabelControlAppearanceObject HyperlinkLabelControlAppearanceOptions ImageAlignToText ImageComboBoxEdit ImageEdit ImageListBoxControl ImageLocation IndicatorDrawMode LabelAutoSizeMode LabelControl LabelControlAppearanceObject LineChartRangeControlClientView ListBoxControl ListBoxDrawItemEventArgs ListBoxDrawItemEventHandler LookUpEdit LookUpEditBase MarqueeProgressBarControl MemoEdit MemoExEdit MRUEdit NavigatorBase NavigatorButton NavigatorButtonBase NavigatorButtonClickEventArgs NavigatorButtonClickEventHandler NavigatorButtonCollectionBase NavigatorButtonsBase NavigatorButtonsTextLocation NavigatorButtonType NavigatorCustomButton NavigatorCustomButtons NavigatorExceptionEventArgs NavigatorExceptionEventHandler NumericChartRangeControlClient NumericChartRangeControlClientGridOptions NumericChartRangeControlClientRange NumericRangeControlClient ObjectCustomDrawEventArgs PanelControl PickImage PictureEdit PopupBaseAutoSearchEdit PopupBaseEdit PopupCloseMode PopupContainerControl PopupContainerEdit PopupFilterMode PopupGalleryEdit PopupGalleryEditGallery PopupPanelOptions ProgressBarBaseControl ProgressBarControl QueryIsSearchColumnEventArgs QueryUniqueItemIdEventArgs RadioGroup RangeControl RangeControlClientBase RangeControlDateTimeGridAlignment RangeControlTimeSpanGridAlignment RangeTrackBarControl RatingControl ScrollBarBase ScrollBarBase.PositionRestoreHelper ScrollBarType ScrollUIMode SearchControl SearchLookUpEdit SeparatorControl ShowNullValuePromptOptions SidePanel SimpleButton SimpleControl SparklineEdit SpinEdit SplitContainerControl SplitFixedPanel SplitPanelVisibility SplitterControl StepProgressBar StepProgressBarCommonItemOptions StepProgressBarIndicatorOptions StepProgressBarItem StepProgressBarItemContentBlock StepProgressBarItemHyperlinkClickEventArgs StepProgressBarItemOptions StepProgressBarShadowDrawMode StyleController StyleFormatConditionBase SvgImageBox SvgImageBoxOptionsExport SvgImageBoxOptionsSelection SvgImageItem SvgImageItemAppearance SvgImageItemAppearanceCollection SvgImageItemCollection SvgImageItemEventArgs SvgImageItemMouseEventArgs SvgImagePopupMenuShowingEventArgs SvgImageSelection SvgImageSelectionChangingEventArgs SvgImageSizeMode TextEdit TextEdit.Block TextEdit.QueryAdvancedModeEventArgs TextEdit.Segment TextEditAdvancedModeOptions TextEditAutoCompleteMode TextEditCustomHighlightTextEventArgs TextEditCustomizeAutoCompleteSourceEventArgs TileControl TileControlImageToTextAlignment TileControlScrollMode TileGroup TileGroupCollection TileItem TileItemAppearances TileItemCheckMode TileItemClickEventHandler TileItemCollection TileItemContentAlignment TileItemDragEventArgs TileItemDragEventHandler TileItemElement TileItemElementCollection TileItemEventArgs TileItemFrame TileItemFrameCollection TileItemImageScaleMode TileItemSize TimeEdit TimeSpanChartRangeControlClient TimeSpanChartRangeControlClientGridOptions TimeSpanChartRangeControlClientRange TimeSpanEdit ToggleSwitch TokenEdit TokenEdit.QueryAdvancedModeEventArgs TokenEditBeforeShowPopupPanelEventArgs TokenEditToken TokenEditValueType TrackBarControl TreeListLookUpEdit VistaCalendarViewStyle VScrollBar VScrollBarBase WaitAnimationOptions WindowsFormsSettings XtraBaseArgs XtraDialog XtraDialogArgs XtraFolderBrowserDialog XtraForm XtraInputBox XtraInputBox.Buttons XtraInputBoxArgs XtraMessageBox XtraMessageBoxArgs XtraMessageBoxClosedArgs XtraMessageBoxEventArgs XtraMessageBoxLoadArgs XtraOpenFileDialog XtraPanel XtraSaveFileDialog XtraScrollableControl XtraUserControl ZoomTrackBarControl DevExpress.XtraEditors.ButtonPanel DevExpress.XtraEditors.Calendar DevExpress.XtraEditors.Camera DevExpress.XtraEditors.Container DevExpress.XtraEditors.Controls DevExpress.XtraEditors.Controls.StepProgressBar DevExpress.XtraEditors.CustomEditor DevExpress.XtraEditors.DXErrorProvider DevExpress.XtraEditors.Filtering DevExpress.XtraEditors.Mask DevExpress.XtraEditors.Repository DevExpress.XtraEditors.TableLayout DevExpress.XtraEditors.ViewInfo DevExpress.XtraGantt DevExpress.XtraGantt.Base.Scheduling DevExpress.XtraGantt.Exceptions DevExpress.XtraGantt.Localization DevExpress.XtraGantt.Options DevExpress.XtraGantt.Printing DevExpress.XtraGantt.Scheduling DevExpress.XtraGauges.Presets.Styles DevExpress.XtraGauges.Win DevExpress.XtraGauges.Win.Base DevExpress.XtraGauges.Win.Gauges.Circular DevExpress.XtraGauges.Win.Gauges.Digital DevExpress.XtraGauges.Win.Gauges.Linear DevExpress.XtraGauges.Win.Gauges.State DevExpress.XtraGrid DevExpress.XtraGrid.Columns DevExpress.XtraGrid.EditForm DevExpress.XtraGrid.FilterEditor DevExpress.XtraGrid.Localization DevExpress.XtraGrid.Views.BandedGrid DevExpress.XtraGrid.Views.BandedGrid.ViewInfo DevExpress.XtraGrid.Views.Base DevExpress.XtraGrid.Views.Base.ViewInfo DevExpress.XtraGrid.Views.Card DevExpress.XtraGrid.Views.Card.ViewInfo DevExpress.XtraGrid.Views.Grid DevExpress.XtraGrid.Views.Grid.ViewInfo DevExpress.XtraGrid.Views.Items DevExpress.XtraGrid.Views.Layout DevExpress.XtraGrid.Views.Layout.Events DevExpress.XtraGrid.Views.Layout.ViewInfo DevExpress.XtraGrid.Views.Printing DevExpress.XtraGrid.Views.Tile DevExpress.XtraGrid.Views.WinExplorer DevExpress.XtraGrid.WinExplorer DevExpress.XtraLayout DevExpress.XtraLayout.Converter DevExpress.XtraLayout.Customization DevExpress.XtraLayout.HitInfo DevExpress.XtraLayout.Localization DevExpress.XtraLayout.Utils DevExpress.XtraMap DevExpress.XtraMap.Printing DevExpress.XtraNavBar DevExpress.XtraNavBar.ViewInfo DevExpress.XtraPdfViewer DevExpress.XtraPdfViewer.Commands DevExpress.XtraPdfViewer.Extensions DevExpress.XtraPdfViewer.Localization DevExpress.XtraPivotGrid DevExpress.XtraPivotGrid.Data DevExpress.XtraPrinting DevExpress.XtraPrinting.Control DevExpress.XtraPrinting.Links DevExpress.XtraPrinting.Preview DevExpress.XtraPrintingLinks DevExpress.XtraReports.UI DevExpress.XtraRichEdit DevExpress.XtraRichEdit.Commands DevExpress.XtraRichEdit.Export DevExpress.XtraRichEdit.Import DevExpress.XtraRichEdit.Menu DevExpress.XtraScheduler DevExpress.XtraScheduler.Drawing DevExpress.XtraScheduler.GoogleCalendar DevExpress.XtraScheduler.Printing DevExpress.XtraScheduler.Reporting DevExpress.XtraScheduler.Reporting.UI DevExpress.XtraScheduler.Services DevExpress.XtraScheduler.Services.Implementation DevExpress.XtraScheduler.UI DevExpress.XtraSpellChecker DevExpress.XtraSpellChecker.Localization DevExpress.XtraSplashForm DevExpress.XtraSplashScreen DevExpress.XtraSpreadsheet DevExpress.XtraSpreadsheet.Services DevExpress.XtraTab DevExpress.XtraTab.Buttons DevExpress.XtraTab.ViewInfo DevExpress.XtraTabbedMdi DevExpress.XtraToolbox DevExpress.XtraTreeList DevExpress.XtraTreeList.Columns DevExpress.XtraTreeList.Data DevExpress.XtraTreeList.Localization DevExpress.XtraTreeList.Menu DevExpress.XtraTreeList.Nodes DevExpress.XtraTreeList.Nodes.Operations DevExpress.XtraTreeList.Printing DevExpress.XtraTreeList.StyleFormatConditions DevExpress.XtraTreeMap DevExpress.XtraTreeMap.Printing DevExpress.XtraVerticalGrid DevExpress.XtraVerticalGrid.Events DevExpress.XtraVerticalGrid.Localization DevExpress.XtraVerticalGrid.Rows DevExpress.XtraVerticalGrid.StyleFormatConditions DevExpress.XtraWaitForm DevExpress.XtraWizard Download CHM In This Article * Declaration * Remarks * Main Settings and Events * Masked Input * Bind to Data Source * Enter Date-Time Values * Implements * Inheritance GENERAL INFORMATION .NET SUBSCRIPTION What's Included DevExpress Installation DevExpress Code Examples COMMON TOOLS Project Converter Assembly Deployment Tool Localization Service QUALITY ASSURANCE AND PRODUCTIVITY CodeRush for Visual Studio (FREE) TestCafe Studio DESKTOP CONTROLS WinForms WPF VCL WinUI TOOLS WinForms Skin Editor WPF Theme Designer WPF Theme Editor (Legacy) Coded UI Test Extension FRAMEWORKS AND LIBRARIES XAF - Cross-Platform .NET App UI XPO - .NET ORM Library (FREE) XPO Profiler Core Libraries .NET App Security & Web API Service (FREE) WEB CONTROLS AND EXTENSIONS ASP.NET Web Forms Controls ASP.NET MVC Extensions ASP.NET Core Controls ASP.NET Bootstrap Controls DevExtreme DevExtreme ASP.NET MVC Controls Blazor Components TOOLS ASP.NET Theme Builder ASP.NET Theme Deployer MAINTENANCE MODE ASP.NET Core Bootstrap Controls MOBILE Xamarin UI Controls (FREE) .NET MAUI (FREE) ENTERPRISE AND ANALYTIC TOOLS Reporting Report and Dashboard Server BI Dashboard Office File API END-USER DOCUMENTATION Interface Elements for Desktop Interface Elements for Web Dashboard for Desktop Dashboard for Web DATEEDIT CLASS In This Article Declaration Remarks Main Settings and Events Masked Input Bind to Data Source Enter Date-Time Values Implements Inheritance The editor to edit date/time values using a dropdown calendar. Namespace: DevExpress.XtraEditors Assembly: DevExpress.XtraEditors.v22.2.dll NuGet Package: DevExpress.Win.Navigation #DECLARATION * C# * VB.NET [DefaultBindingPropertyEx("DateTime")] public class DateEdit : PopupBaseEdit, IDateRangeCollectionOwner <DefaultBindingPropertyEx("DateTime")> Public Class DateEdit Inherits PopupBaseEdit Implements IDateRangeCollectionOwner #REMARKS The DateEdit control allows users to specify date/time values using a dropdown calendar and edit box. The DateEdit.Properties property (a RepositoryItemDateEdit class instance) contains the DateEdit control’s various settings. Use the RepositoryItemDateEdit.CalendarView property to choose a calendar style: Calendar Style Description CalendarView.Fluent The calendar that supports the Acrylic and Reveal Highlight effects and allows you to mirror the appearance of the Windows 10 calendar. CalendarView.Vista The Vista-style calendar: CalendarView.TouchUI The touch-aware date-editing UI: For a DateEdit control, the control’s mask (see the RepositoryItemTextEdit.Mask inherited property) specifies which date-time columns are displayed in the dropdown calendar. To display time columns, enable the RepositoryItemDateEdit.CalendarTimeEditing option. CalendarView.Classic The classic calendar: CalendarView.ClassicNew An Outlook 2016-inspired calendar style. #MAIN SETTINGS AND EVENTS * DateEdit.DateTime - Specifies the control’s edit value (for standalone editors). * RepositoryItemDateEdit.ShowToday - Gets or sets whether to display the Today button in the dropdown calendar (in Classic and Vista modes). * RepositoryItemDateEdit.ShowClear - Gets or sets whether the dropdown calendar contains the Clear button (this button is not supported in CalendarView.TouchUI mode). * RepositoryItemTextEdit.AllowNullInput - Gets or sets whether end-users can reset the editor’s value to null via keyboard. The edit value is reset to Color.Empty for the ColorEdit and ColorPickEdit controls. * RepositoryItemDateEdit.CalendarTimeEditing - Gets or sets whether an end-user can edit the time portion of a date value in the dropdown calendar. * RepositoryItemDateEdit.DrawItem (DateEdit.DrawItem) - Provides the ability to custom paint day cells in the dropdown calendar. * DisableCalendarDate ( DisabledDateProvider ) - Allows you to disable specific dates. * MinValue / MaxValue - Specify the allowed range of dates. #MASKED INPUT By default, DateEdit functions in the DateTime masked mode, which allows you to enter date/time values using one of the standard or custom date/time patterns. Use the RepositoryItemDateEdit.EditMask property to switch from the default pattern (short date -“d”) to another one. Set the MaskProperties.MaskType (DateEdit.Properties.Mask.MaskType) property to DateTimeAdvancingCaret to allow the caret to automatically skip date separators while entering date/time values. Note The date/time masks only support the following calendars: Gregorian, Korean, Taiwan, and Thai Buddhist. #BIND TO DATA SOURCE If you need to bind the DateEdit control to a field in an underlying data source/business object, we recommend that this field stores date/time values. If the DateEdit is bound to a string field, the editor value is updated according to the current culture. For instance, day and month date portions can swap places. In this case, you need to manually parse editor values: * C# * VB.NET var date = DateTime.Parse("11-07-2020", CultureInfo.InvariantCulture); Dim date = DateTime.Parse("11-07-2020", CultureInfo.InvariantCulture) #ENTER DATE-TIME VALUES See the following topic to learn about the editors you can use to enter date-time values: How to: Enter date-time values. #IMPLEMENTS IXtraResizableControl #INHERITANCE Show 12 items Object MarshalByRefObject Component Control DevExpress.XtraEditors.XtraControl ControlBase BaseControl BaseEdit TextEdit ButtonEdit PopupBaseEdit DateEdit See Also DateEdit Members RepositoryItemDateEdit Mask Type: DateTime How to: Enter date-time values DevExpress.XtraEditors Namespace Feedback Was this page helpful? yes no Close Thanks for your feedback! Any other suggestions? Tell us here. Close Your feedback has been sent Feedback send no thanks Close No Your feedback is appreciated. Feedback Send feedback Close We appreciate your feedback and continued support. May we contact you if we need to discuss your feedback in greater detail or update you on changes to this help topic? Yes, I authorize DevExpress to contact me. Submit Skip Close Use of this site constitutes acceptance of our Website Terms of Use and Privacy PolicyDo Not Sell My Personal Information Copyright © 1998-2023 Developer Express Inc. All trademarks or registered trademarks are property of their respective owners Why We Use Cookies This site uses cookies to make your browsing experience more convenient and personal. Cookies store useful information on your computer to help us improve the efficiency and relevance of our site for you. In some cases, they are essential to making the site work properly. By accessing this site, you consent to the use of cookies. For more information, refer to DevExpress’ privacy policy and cookie policy. I Understand