$npx -y skills add syncfusion/maui-ui-components-skills --skill syncfusion-maui-date-time-pickerImplements Syncfusion .NET MAUI DateTimePicker (SfDateTimePicker) control. Use when implementing date and time selection, datetime pickers, or date-time input interfaces in .NET MAUI applications. Covers DateTimePicker setup, formatting dates/times, picker modes (dialog/relative)
| 1 | # Implementing Date Time Pickers |
| 2 | |
| 3 | A comprehensive skill for implementing and customizing the Syncfusion .NET MAUI DateTimePicker (SfDateTimePicker) control. This component provides a flexible way to select dates, times, or both with extensive customization options. |
| 4 | |
| 5 | ## When to Use This Skill |
| 6 | |
| 7 | Use this skill when you need to: |
| 8 | - Add date and time selection to .NET MAUI apps |
| 9 | - Implement appointment or booking systems |
| 10 | - Create scheduling interfaces with time slots |
| 11 | - Build forms requiring datetime input |
| 12 | - Add calendar pickers with time selection |
| 13 | - Implement date range restrictions |
| 14 | - Customize picker appearance (headers, footers, themes) |
| 15 | - Handle selection events and data binding |
| 16 | - Support multiple date/time formats |
| 17 | - Localize picker labels and buttons |
| 18 | - Implement accessible datetime selection |
| 19 | |
| 20 | ## Component Overview |
| 21 | |
| 22 | The **SfDateTimePicker** is a versatile picker control that allows users to select: |
| 23 | - **Dates only** - Pick day, month, and year |
| 24 | - **Times only** - Pick hours, minutes, and seconds |
| 25 | - **Date and Time** - Combined selection |
| 26 | - **Formatted display** - 18 date formats and 9 time formats |
| 27 | - **Multiple display modes** - Inline, Dialog, or Relative Dialog |
| 28 | - **Date restrictions** - Min/max dates and blackout times |
| 29 | - **Custom intervals** - Skip days, months, hours, minutes |
| 30 | - **Full customization** - Headers, footers, columns, selection views |
| 31 | - **Localization** - Multi-language support |
| 32 | |
| 33 | ## Documentation and Navigation Guide |
| 34 | |
| 35 | ### Getting Started & Installation |
| 36 | 📄 **Read:** [references/getting-started.md](references/getting-started.md) |
| 37 | - Installing Syncfusion.Maui.Picker NuGet package |
| 38 | - Registering handler in MauiProgram.cs |
| 39 | - Basic DateTimePicker implementation (XAML & C#) |
| 40 | - Running your first application |
| 41 | - Minimal working examples |
| 42 | |
| 43 | ### Date and Time Formatting |
| 44 | 📄 **Read:** [references/formatting.md](references/formatting.md) |
| 45 | - 18 predefined date formats (dd_MM_yyyy, yyyy_MM_dd, MMM_dd_yyyy, etc.) |
| 46 | - 9 predefined time formats (h_mm_tt, HH_mm_ss, hh_mm_ss_tt, etc.) |
| 47 | - Setting DateFormat and TimeFormat properties |
| 48 | - Custom format configurations |
| 49 | - Format selection best practices |
| 50 | - Display format examples |
| 51 | |
| 52 | ### Picker Modes and Display |
| 53 | 📄 **Read:** [references/picker-modes.md](references/picker-modes.md) |
| 54 | - Default mode (inline display) |
| 55 | - Dialog mode (popup with overlay) |
| 56 | - RelativeDialog mode (positioned popup) |
| 57 | - IsOpen property for programmatic control |
| 58 | - 8 RelativePosition options (AlignTop, AlignBottom, AlignTopLeft, etc.) |
| 59 | - Mode selection guidance by use case |
| 60 | - Opening picker programmatically |
| 61 | |
| 62 | ### Customization |
| 63 | 📄 **Read:** [references/customization.md](references/customization.md) |
| 64 | - Header customization (text, divider color, templates) |
| 65 | - HeaderTemplate and HeaderTemplateSelector |
| 66 | - Column header styling |
| 67 | - Footer customization (OK/Cancel buttons, text, visibility) |
| 68 | - Selection view appearance |
| 69 | - Background colors and text styles |
| 70 | - DataTemplate and DataTemplateSelector examples |
| 71 | - Advanced theming |
| 72 | |
| 73 | ### Date Restrictions |
| 74 | 📄 **Read:** [references/date-restriction.md](references/date-restriction.md) |
| 75 | - MinimumDate property (lower bound restrictions) |
| 76 | - MaximumDate property (upper bound restrictions) |
| 77 | - BlackoutDateTimes (blocking specific dates and times) |
| 78 | - Validation rules |
| 79 | - Use cases (holidays, unavailable periods, business hours) |
| 80 | - Restriction patterns and best practices |
| 81 | |
| 82 | ### Intervals |
| 83 | 📄 **Read:** [references/intervals.md](references/intervals.md) |
| 84 | - Date intervals (DayInterval, MonthInterval, YearInterval) |
| 85 | - Time intervals (HourInterval, MinuteInterval, SecondInterval, MilliSecondInterval) |
| 86 | - Combining multiple intervals |
| 87 | - Skip patterns for appointment booking |
| 88 | - Time slot configurations (15 min, 30 min intervals) |
| 89 | - Use cases and examples |
| 90 | |
| 91 | ### Events |
| 92 | 📄 **Read:** [references/events.md](references/events.md) |
| 93 | - SelectionChanged event (NewValue, OldValue) |
| 94 | - Immediate vs confirmed selection (IsSelectionImmediate) |
| 95 | - Dialog mode events (Opened, Closing, Closed) |
| 96 | - Canceling selection in Closing event |
| 97 | - Event handling patterns |
| 98 | - Data binding with events |
| 99 | - MVVM integration |
| 100 | |
| 101 | ### Localization |
| 102 | 📄 **Read:** [references/localization.md](references/localization.md) |
| 103 | - Localizable strings (Day, Month, Year, Hour, Minute, Second, OK, Cancel) |
| 104 | - Setting CurrentUICulture |
| 105 | - Creating resource files (.resx) |
| 106 | - Adding translations for multiple languages |
| 107 | - Resource file structure and naming |
| 108 | - French, Spanish, and other language examples |
| 109 | - Best practices for multi-language apps |
| 110 | |
| 111 | ### Accessibility |
| 112 | 📄 **Read:** [references/accessibility.md](references/accessibility.md) |
| 113 | - WCAG comp |