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

syncfusion-aspnetcore-datepicker同步融合 aspnetcore 日期选择器

Agent Skill

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

总安装

218

周安装

9

GitHub Stars

公开资料未说明

下载量

71
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/syncfusion/aspnetcore-ui-components-skills --skill syncfusion-aspnetcore-datepicker

简介

同步融合 ASP.NET Core 日期选择器组件,用于构建交互式日期输入界面。

  • 适用于需要日期选择、日程安排或时间范围筛选的 Web 应用场景。
  • 通过 GitHub 安装并集成到 ASP.NET Core 项目中,支持多种日期格式和本地化。
  • 使用前请确认项目依赖和许可证要求,注意组件版本兼容性。
  • 涉及用户数据输入时需遵循隐私保护规范,避免敏感信息泄露。

SKILL.md

Implementing DatePicker in ASP.NET Core

The DatePicker is a graphical user interface control that allows users to select or enter a date value with advanced features like date range constraints, custom formatting, popup calendar, keyboard navigation, event handling, and globalization support. This skill guides you through implementing DatePicker in ASP.NET Core applications using Syncfusion's Tag Helper syntax.

When to Use This Skill

Use this skill when you need to:

  • Create date input fields with calendar popup selection
  • Implement date range constraints (min/max dates)
  • Support custom date format patterns (yyyy-MM-dd, dd/MM/yyyy, etc.)
  • Accept user input in multiple date formats
  • Validate dates with strict mode enforcement
  • Respond to date selection and interaction events
  • Display dates in culture-specific formats
  • Support right-to-left languages (Arabic, Hebrew, Persian)
  • Style and customize the date picker appearance
  • Integrate DatePicker with ASP.NET Core model binding
  • Build booking systems, appointment schedulers, or registration forms
  • Implement accessible forms following WCAG 2.2 Level AA standards

Key Features

FeatureUse Case
Popup CalendarVisual date selection with month/year navigation
Date RangeMin/max constraints with automatic validation
Custom FormatsDisplay dates as yyyy-MM-dd, dd/MM/yyyy, MM/dd/yyyy, etc.
Input FormatsAccept multiple input patterns for user entry flexibility
Strict ModeEnforce strict date validation and restrict invalid entries
Keyboard NavigationArrow keys, Enter, Tab, Escape for accessibility
EventsCreated, Change, Blur, Focus, Open, Close event handlers
Model BindingTwo-way binding with ASP.NET Core DateTime properties
GlobalizationSupport 150+ culture-specific date formats
LocalizationTranslate popup placeholders and button text
RTL SupportRight-to-left text direction for Arabic, Hebrew, Persian
StylingCSS customization with theme integration (Fluent, Bootstrap)
Readonly StateDisplay-only mode without user interaction
Disabled StateDisable specific dates or entire date picker

Documentation Navigation Guide

Getting Started

📄 Read: references/getting-started.md

  • Prerequisites and system requirements
  • Installing Syncfusion.EJ2.AspNet.Core NuGet package
  • Adding Tag Helpers to _ViewImports.cshtml
  • Adding stylesheets and script resources via CDN
  • Registering the script manager
  • Creating your first DatePicker with Tag Helper
  • Binding to ASP.NET Core DateTime models
  • Tag Helper attributes and syntax reference

Date Formats and Parsing

📄 Read: references/date-formats-and-parsing.md

  • Standard date format patterns (yyyy-MM-dd, dd/MM/yyyy)
  • Custom date format string construction
  • Input format acceptance patterns for flexible entry
  • Locale-specific date parsing and display
  • Format conversion examples with real-world patterns
  • Edge cases: month boundaries, leap years, DST
  • Date validation and error handling

Date Ranges and Validation

📄 Read: references/date-ranges-and-validation.md

  • Setting minimum and maximum date constraints
  • Range validation with automatic boundary checking
  • Disabling specific dates or date ranges
  • Strict mode enforcement and validation behavior
  • Out-of-range date handling
  • Real-world validation patterns (birth date, appointment booking, contract dates)
  • Edge cases and boundary conditions

Events and Interactions

📄 Read: references/events-and-interactions.md

  • Created event initialization and setup
  • Change event for date selection handling
  • Blur and Focus events for input state
  • Popup Open and Close events
  • Preventing popup close on date selection
  • Event handler parameters and data
  • Custom interaction patterns and workflows

Globalization and Localization

📄 Read: references/globalization-localization.md

  • Culture-specific date formatting (en-US, de-DE, fr-FR, etc.)
  • CLDR data and locale configuration
  • RTL (right-to-left) language support
  • Multiple language date display
  • Regional calendar considerations
  • Timezone handling and date conversion
  • Dynamic culture switching in applications

Styling and Appearance

📄 Read: references/styling-and-appearance.md

  • CSS class customization and styling patterns
  • Theme integration (Fluent, Bootstrap, Material, Tailwind)
  • Readonly and disabled state styling
  • Placeholder and label customization
  • Responsive popup positioning
  • Custom CSS classes for validation states
  • Accessibility and focus indicator styling

Quick Start Example

ASP.NET Core Tag Helper Syntax:

// In your Razor Page or Controller View
public class BookingModel : PageModel
{
    [BindProperty]
    public DateTime AppointmentDate { get; set; }

    [BindProperty]
    public DateTime StartDate { get; set; }

    public void OnPost()
    {
        // Handle form submission with AppointmentDate
    }
}
<!-- In your Razor Page (.cshtml) -->
<form method="post">
    <!-- Basic DatePicker with default format -->
    <label>Select Appointment Date:</label>
    <ejs-datepicker asp-for="AppointmentDate"
                     placeholder="Choose a date">
    </ejs-datepicker>

    <!-- DatePicker with date range (today to 30 days ahead) -->
    <label>Select Travel Start Date:</label>
    <ejs-datepicker id="startDatePicker"
                     asp-for="StartDate"
                     min="@DateTime.Today"
                     max="@DateTime.Today.AddDays(30)"
                     format="yyyy-MM-dd"
                     placeholder="mm/dd/yyyy">
    </ejs-datepicker>

    <button type="submit" class="e-btn">Book Appointment</button>
</form>

Common Patterns

Pattern 1: Date Range Selection (Birth Date)

<ejs-datepicker id="birthDatePicker"
                 value="@DateTime.Today.AddYears(-25)"
                 min="@DateTime.Today.AddYears(-100)"
                 max="@DateTime.Today"
                 format="MM/dd/yyyy"
                 placeholder="MM/DD/YYYY">
</ejs-datepicker>

Pattern 2: Multi-Format Input Acceptance

<ejs-datepicker id="flexibleDatePicker"
                 format="yyyy-MM-dd"
                 input-formats="@new[] { 'yyyy-MM-dd', 'dd/MM/yyyy', 'MM-dd-yyyy' }"
                 placeholder="Enter date (yyyy-MM-dd or dd/MM/yyyy)">
</ejs-datepicker>

Pattern 3: Event-Driven Validation

<ejs-datepicker id="validatedDatePicker"
                 change="onDateChange"
                 placeholder="Select date">
</ejs-datepicker>

<script>
function onDateChange(args) {
    if (args.value) {
        console.log('Selected Date:', args.value);
    }
}
</script>

Pattern 4: Readonly Display Mode

<ejs-datepicker id="readonlyPicker"
                 value="@ViewData["SubmissionDate"]"
                 readonly="true"
                 format="MMMM dd, yyyy">
</ejs-datepicker>

Key Properties and Attributes

PropertyTypeDescription
asp-forstringBinds to ASP.NET Core model property (DateTime)
valueDateTimeInitial selected date
minDateTimeMinimum selectable date
maxDateTimeMaximum selectable date
formatstringDisplay date format pattern
input-formatsstring[]Accepted input format patterns
placeholderstringInput placeholder text
readonlyboolDisables date editing
enabledboolEnable/disable the component
strict-modeboolEnforce strict date validation
start-viewstringInitial calendar view (Month, Year, Decade)

Platform-Specific Notes

ASP.NET Core Tag Helper Syntax

  • Use asp-for attribute for direct model binding (replaces id and name)
  • Hyphenated attributes map to C# properties (e.g., input-formatsInputFormats)
  • Self-closing tags: <ejs-datepicker /> or with content
  • Access via JavaScript using element ID

Tag Helper vs HTML Helper

  • Tag Helpers (newer, recommended): Razor-like syntax, intellisense support
  • HTML Helpers (legacy): Manual JavaScript configuration
  • This skill focuses on Tag Helpers for ASP.NET Core best practices

Model Binding

  • Use asp-for for automatic two-way binding
  • DateTime properties must be nullable DateTime? for optional dates
  • Server-side validation complements client-side DatePicker validation

Event Handling

  • Bind events using attribute syntax: change="functionName"
  • Handler function receives DatePickerEventArgs parameter
  • Both client-side (JavaScript) and server-side validation supported

Next Steps

  1. Start with: Getting Started - Set up your first DatePicker
  2. Configure dates: Date Formats and Parsing - Custom formatting
  3. Add validation: Date Ranges and Validation - Min/max constraints
  4. Handle interactions: Events and Interactions - Respond to user actions
  5. Go global: Globalization and Localization - Multi-language support
  6. Polish UI: Styling and Appearance - Custom themes

Last Updated: March 2026 Framework Version: Syncfusion EJ2 24.1.48+ License: SEE LICENSE IN license

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

36.35%
按下载量换算26

Claude

31%
按下载量换算22

Cursor

16.06%
按下载量换算11

Gemini CLI

8.38%
按下载量换算6

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

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

安装前确认

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

来源信息

继续浏览同类 Skills