# GraffitiDateTimePicker
Class Inherits GraffitiUIControl
## About
GraffitiDateTimePicker is an advanced chronological selector that combines both a date picker and time picker in to a single component. It has a wide variety of features including complete color customization, and views for time, month, year, and decade.
## Preview






Previous
Next
## Compatibility
### Framework API Version
| 1.0 | 2.0 |
| :---: | :---: |
| False | True |
### Console
| 32-Bit | 64-Bit |
| :---: | :---: |
| True | True |
### Desktop
| 32-Bit | 64-Bit |
| :---: | :---: |
| True | True |
### iOS
| 32-Bit | 64-Bit |
| :---: | :---: |
| False | True |
### Web
| 32-Bit | 64-Bit |
| :---: | :---: |
| True | True |
## Enumerations
| Name | Value | Description |
| --- | :---: | --- |
| DaysOfWeek | Sunday <br> Monday <br> Tuesday <br> Wednesday <br> Thursday <br> Friday <br> Saturday | Supported day of week values. |
| SelectionTypes | Single <br> Multiple <br> Range | Supported selection models. |
| ViewTypes | Month <br> Year <br> Decade <br> Time | Supported view types. |
## Event Definitions
| Name | Parameters | Return Type | Description |
| --- | :---: | :---: | --- |
| DatePress | value As DateTime | (None) | The user pressed on a date. |
| MonthPress | value as Integer | (None) | The user pressed on a month. |
| Open | (None) | (None) | |
| SelectionChanged | (None) | (None) | The user has selected or deselected dates. |
| TimeChange | hour as Integer <br> minute as Integer | (None) | The user has changed the time values. |
| ViewChanged | (None) | (None) | Raised when the current view has changed. |
| YearPress | value as Integer | (None) | The user has Pressed a year. |
## Methods
| Name | Parameters | Return Type | Description |
| --- | :---: | :---: | --- |
| DeselectAll | (None) | (None) | Deselects all selected dates. |
| DeselectDate | theDate As DateTime | (None) | Deselects the specified date. |
| NextMonth | (None) | (None) | Navigate to the next month. |
| NextYear | (None) | (None) | Navigate to the next year. |
| PreviousMonth | (None) | (None) | Navigate to the previous month. |
| PreviousYear | (None) | (None) | Navigate to the previous year. |
| SelectDate | theDate As DateTime | (None) | Adds a date to the selection if multiple selections are possible, otherwise sets the current selection to theDate. |
| SelectedDates | (None) | DateTime | Returns the currently selected dates. |
| SetTime | d As DateTime | (None) | Sets the displayed time to the specified value. |
| SetTime | intHour as Integer <br> intMinute as Integer | (None) | Sets the displayed time to the specified value. |
| ShowDate | theDate as DateTime <br> theView as ViewTypes | (None) | Switches to theView type and brings theDate in to view. |
## Properties
| Name | Type | Default Value | Description |
| --- | :---: | :---: | --- |
| ArrowColor | ColorGroup | Nil | Color of the arrows to navigate. |
| ArrowColorHover | ColorGroup | Nil | Color of the navigation arrows when hovered. |
| ArrowColorHoverBG | ColorGroup | Nil | Background color of navigation arrows when hovered. |
| BGColor | ColorGroup | Nil | Background color for all views. |
| BorderSize | Integer | Nil | Size of padding around the outside of the views. |
| CurrentDateBGColor | ColorGroup | Nil | Background color of current date in view. |
| DaysFontName | String | Nil | Font used to draw days. |
| DaysFontSize | Integer | Nil | Font size for drawing days. |
| DaysTextColor | ColorGroup | Nil | Color of days. |
| FirstDayOfWeek | GraffitiDateTimePicker.DaysOfWeek | Nil | Sets the first day of the calendar week |
| HeaderBGColor | ColorGroup | Nil | Background color of the view header area. |
| HeaderCornerRadius | Integer | Nil | Draw rounded corners on header background> |
| HeaderFontName | String | Nil | Font name used to draw header text. |
| HeaderFontSize | Integer | Nil | Size of font in header. |
| Locale_Days | String | Nil | Text to use for days names. |
| Locale_Months | String | Nil | Text to use for month names. |
| LockView | Boolean | Nil | When true, does not allow the user to navigate between views. |
| MonthTextColor | ColorGroup | Nil | Text color of month names. |
| SelectedDateBackground | ColorGroup | Nil | Background color of currently selected dates. |
| SelectedDateText | ColorGroup | Nil | Foreground color of selected dates. |
| SelectionType | GraffitiDateTimePicker.SelectionTypes | Nil | Sets the selection type, either Single or Range. |
| ShowNavigation | Boolean | Nil | Draws buttons for navigating from month-to-month, year-to-year, etc. |
| ShowViewButton | Boolean | Nil | Draws the button for navigation between calendar views. IE : Decade, Year, Month, Time. |
| Time24Hour | Boolean | Nil | Displays time in 24-hour instead of 12-hour with AM/PM when true. |
| TimeHeader | String | Nil | Text to display in the Time view header. |
| TimeTextSize | Integer | Nil | Size of the time text. |
| ViewDate | DateTime | Nil | The date that is currently being viewed in the control. |
| ViewSelectorColor | ColorGroup | Nil | Color to draw the view selector icon. |
| ViewSelectorHoverBGColor | ColorGroup | Nil | Color to draw the background of the view selector icon when hovered. |
| ViewSelectorHoverColor | ColorGroup | Nil | Color to draw the view selector icon when hovered. |
| ViewType | GraffitiDateTimePicker.ViewTypes | Nil | Sets or retrieves the current view type. |
| WeekdayFontName | String | Nil | Font face used to draw weekday text. |
| WeekdayFontSize | Integer | Nil | Size applied to weekday text font face. |