Token导航 LogoToken导航TokenDH.com
前端设计只读github未标认证来源可访问许可证需确认审计通过

syncfusion-winforms-datetimepicker同步融合 winform 日期时间选择器

Agent Skill

syncfusion-winforms-datetimepicker 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

749

周安装

30

GitHub Stars

1

下载量

242
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:syncfusion-winforms-datetimepicker(同步融合 winform 日期时间选择器)
来源仓库:https://github.com/syncfusion/winforms-ui-components-skills
仓库路径:skills/syncfusion-winforms-datetimepicker
安装命令:
npx skills add https://github.com/syncfusion/winforms-ui-components-skills --skill syncfusion-winforms-datetimepicker
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/syncfusion/winforms-ui-components-skills --skill syncfusion-winforms-datetimepicker

简介

用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中围绕仓库状态进行信息整理。
  • 通过 GitHub 仓库安装,需参考原始 README 了解功能细节。
  • 安装前建议确认权限与维护状态,防止意外执行命令或访问资源。
  • 适用于项目协作与代码变更跟踪。

SKILL.md

Windows Forms DateTime Editor (SfDateTimeEdit)

The Syncfusion Windows Forms SfDateTimeEdit control allows users to edit DateTime values in text or mask format with support for minimum and maximum value validation, watermark, custom patterns, and globalization.

When to Use This Skill

Use this skill when you need to:

  • Edit date and time values with formatted input and validation
  • Implement date pickers for forms, appointments, or scheduling applications
  • Restrict date ranges with minimum and maximum date constraints
  • Display dates in various formats (long date, short date, time, custom patterns)
  • Support mask mode editing with field-by-field navigation and up-down buttons
  • Handle nullable dates with watermark text display
  • Validate date input with custom error messages
  • Support multiple cultures and globalization requirements
  • Implement RTL (Right-to-Left) date editing for international applications
  • Create appointment schedulers or date-based filtering interfaces

Component Overview

Key Features:

  • Editing modes: Default (text) and Mask (formatted field navigation)
  • Date range validation: MinDateTime and MaxDateTime properties
  • Display patterns: LongDate, ShortDate, LongTime, ShortTime, FullDateTime, MonthDay, YearMonth, Custom
  • Nullable dates: AllowNull with watermark text support
  • Validation: Built-in validation with error messages
  • Globalization: Culture-based formatting and patterns
  • Navigation: Tab, arrow keys, up-down buttons for field navigation
  • Appearance: Themes, fonts, colors, borders, calendar dropdown

Documentation and Navigation Guide

Getting Started

📄 Read: references/getting-started.md

Read this reference when you need to:

  • Install SfDateTimeEdit via NuGet or designer
  • Add the control to a Windows Forms project
  • Create SfDateTimeEdit instance programmatically
  • Set basic Value property
  • Configure initial datetime picker setup
  • Understand assembly requirements

Date Range and Value

📄 Read: references/date-range-value.md

Read this reference when you need to:

  • Set and get Value property
  • Implement MinDateTime and MaxDateTime constraints
  • Enable nullable dates with AllowNull
  • Use DateTimeText property for text-based values
  • Handle value change events
  • Validate date range restrictions

Display Patterns

📄 Read: references/display-patterns.md

Read this reference when you need to:

  • Set DateTimePattern (LongDate, ShortDate, LongTime, etc.)
  • Create custom display formats with Format property
  • Display dates in different formats
  • Culture-specific date formatting
  • Month/year only displays
  • Time-only displays

Editing Modes

📄 Read: references/editing-modes.md

Read this reference when you need to:

  • Switch between Default and Mask editing modes
  • Enable field-by-field navigation
  • Configure ShowUpDown buttons
  • Implement keyboard shortcuts
  • Handle Tab and arrow key navigation
  • Increment/decrement date fields

Appearance and Styling

📄 Read: references/appearance-styling.md

Read this reference when you need to:

  • Apply themes with Style and ThemeName
  • Customize fonts, colors, and borders
  • Configure calendar dropdown appearance
  • Show/hide dropdown button
  • Set control size and layout
  • Add tooltips

Validation and Features

📄 Read: references/validation-features.md

Read this reference when you need to:

  • Configure validation modes
  • Handle ValidationCompleted event
  • Display validation error messages
  • Set watermark text for null values
  • Implement globalization and culture support
  • Enable RTL (Right-to-Left) mode
  • Set ReadOnly mode

Quick Start

Basic DateTime Picker

using Syncfusion.WinForms.Input;

// Create datetime editor
SfDateTimeEdit dateTimeEdit = new SfDateTimeEdit();
dateTimeEdit.Location = new Point(20, 20);
dateTimeEdit.Size = new Size(200, 30);
dateTimeEdit.Value = DateTime.Now;

// Add to form
this.Controls.Add(dateTimeEdit);

VB.NET:

Imports Syncfusion.WinForms.Input

' Create datetime editor
Dim dateTimeEdit As New SfDateTimeEdit()
dateTimeEdit.Location = New Point(20, 20)
dateTimeEdit.Size = New Size(200, 30)
dateTimeEdit.Value = DateTime.Now

' Add to form
Me.Controls.Add(dateTimeEdit)

Common Patterns

Pattern 1: Date Picker with Range Restriction

// Appointment date picker (next 30 days only)
SfDateTimeEdit appointmentDate = new SfDateTimeEdit();
appointmentDate.Value = DateTime.Now;
appointmentDate.MinDateTime = DateTime.Now;
appointmentDate.MaxDateTime = DateTime.Now.AddDays(30);
appointmentDate.DateTimePattern = DateTimePattern.LongDate;

this.Controls.Add(appointmentDate);

Pattern 2: Time Picker Only

// Time selection control
SfDateTimeEdit timePicker = new SfDateTimeEdit();
timePicker.Value = DateTime.Now;
timePicker.DateTimePattern = DateTimePattern.LongTime;
timePicker.DateTimeEditingMode = DateTimeEditingMode.Mask;
timePicker.ShowUpDown = true;

this.Controls.Add(timePicker);

Pattern 3: Custom Format Date Editor

// Custom format: "DD-MMM-YYYY" (e.g., "25-Dec-2024")
SfDateTimeEdit customDate = new SfDateTimeEdit();
customDate.Value = DateTime.Now;
customDate.DateTimePattern = DateTimePattern.Custom;
customDate.Format = "dd-MMM-yyyy";

this.Controls.Add(customDate);

Pattern 4: Nullable Date with Watermark

// Optional date field with watermark
SfDateTimeEdit optionalDate = new SfDateTimeEdit();
optionalDate.DateTimeEditingMode = DateTimeEditingMode.Mask;
optionalDate.AllowNull = true;
optionalDate.Value = null;
optionalDate.Watermark = "Select a date...";

this.Controls.Add(optionalDate);

Pattern 5: Mask Mode with Up-Down Buttons

// Field-by-field editing with increment/decrement
SfDateTimeEdit maskEditor = new SfDateTimeEdit();
maskEditor.Value = DateTime.Now;
maskEditor.DateTimeEditingMode = DateTimeEditingMode.Mask;
maskEditor.ShowUpDown = true;
maskEditor.DateTimePattern = DateTimePattern.ShortDate;

this.Controls.Add(maskEditor);

Pattern 6: Date Range Filter

// Date range for filtering (From/To dates)
SfDateTimeEdit fromDate = new SfDateTimeEdit();
fromDate.Value = DateTime.Now.AddDays(-30);
fromDate.DateTimePattern = DateTimePattern.ShortDate;

SfDateTimeEdit toDate = new SfDateTimeEdit();
toDate.Value = DateTime.Now;
toDate.DateTimePattern = DateTimePattern.ShortDate;
toDate.MinDateTime = fromDate.Value.Value;

// Update toDate minimum when fromDate changes
fromDate.ValueChanged += (s, e) => {
    if (fromDate.Value.HasValue)
        toDate.MinDateTime = fromDate.Value.Value;
};

this.Controls.Add(fromDate);
this.Controls.Add(toDate);

Pattern 7: Validated Date Entry

// Date entry with validation
SfDateTimeEdit validatedDate = new SfDateTimeEdit();
validatedDate.Value = DateTime.Now;
validatedDate.MinDateTime = new DateTime(2020, 1, 1);
validatedDate.MaxDateTime = new DateTime(2030, 12, 31);

validatedDate.ValidationCompleted += (s, e) => {
    if (!e.IsValid)
    {
        MessageBox.Show($"Invalid date: {e.ErrorMessage}");
    }
};

this.Controls.Add(validatedDate);

Key Properties

PropertyTypeDescription
ValueDateTime?Current date-time value (nullable)
MinDateTimeDateTimeMinimum allowed date-time
MaxDateTimeDateTimeMaximum allowed date-time
DateTimePatternDateTimePatternDisplay format (LongDate, ShortDate, LongTime, etc.)
FormatstringCustom date-time format string
DateTimeEditingModeDateTimeEditingModeEditing mode (Default or Mask)
AllowNullboolEnable null value support
WatermarkstringText displayed when value is null
ShowUpDownboolShow up-down buttons for mask mode
DateTimeTextstringDate-time as text string
ValidationErrorMessagestringCustom validation error message
StyleSfDateTimeEditStyleVisual style/theme
ReadOnlyboolEnable read-only mode
ToolTipTextstringTooltip text for control

Key Events

EventDescription
ValueChangedOccurs when Value property changes
ValidationCompletedOccurs after validation is completed
DateTimeTextChangedOccurs when DateTimeText changes

Common Use Cases

Use Case 1: Appointment Scheduling

Select appointment date and time with business hours constraints.

Use Case 2: Date Range Filtering

Implement "From Date" to "To Date" filters for reports or data queries.

Use Case 3: Birth Date Entry

Capture birth dates with past date restrictions and custom format.

Use Case 4: Time Entry

Time-only input for shift scheduling or time tracking.

Use Case 5: Optional Date Fields

Forms with nullable date fields showing watermark when empty.

Use Case 6: International Date Input

Culture-specific date formatting with RTL support for Arabic, Hebrew, etc.

Best Practices

  1. Set appropriate date ranges: Use MinDateTime and MaxDateTime to prevent invalid date selection
  2. Choose correct pattern: Use ShortDate for space-constrained UIs, LongDate for clarity
  3. Enable mask mode for precision: Use DateTimeEditingMode.Mask for field-by-field editing
  4. Show watermark for optional dates: Set AllowNull=true and provide clear watermark text
  5. Validate on ValueChanged: Implement validation logic in ValueChanged event handler
  6. Use custom formats sparingly: Stick to standard patterns for better user familiarity
  7. Consider culture settings: Test with different cultures if supporting international users
  8. Handle null values: Always check Value.HasValue before using Value.Value
  9. Provide tooltips: Use ToolTipText to guide users on date format or constraints
  10. Test keyboard navigation: Ensure Tab and arrow keys work smoothly in mask mode

Comparison with DateTimePickerAdv

Use SfDateTimeEdit when you need:

  • Modern UI with themes
  • Mask mode with field navigation
  • Watermark support
  • Better validation features
  • Culture-specific patterns

Use DateTimePickerAdv when you need:

  • Custom up-down/dropdown button appearance
  • Legacy application compatibility
  • Specific advanced customization not in SfDateTimeEdit

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.68%
按下载量换算89

Claude

32.21%
按下载量换算78

Cursor

16.88%
按下载量换算41

Gemini CLI

8.7%
按下载量换算21

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills