Token导航 LogoToken导航

Agent Skill · 前端设计

syncfusion-angular-datetimepicker(syncfusion Angular datetimepicker 命令行)

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

syncfusion-angular-datetimepicker 是前端设计类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证信息还不明确,第三方扫描已通过,按安装量在前端设计类的 10,216 个 Skill 里排第 5,480。

总安装 661周安装 27GitHub Stars 公开资料未说明下载 212核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

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

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

命令行安装

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

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

这个 Skill 是做什么的

前端设计类 Skill 关注页面结构、视觉规范和组件写法,输出通常是可运行的界面代码。

集成日期时间联合选择器,同时处理日期与时分秒输入。syncfusion-angular-datetimepicker 属于前端设计类 Skill,可作为该场景下的辅助能力补充。适用于会议安排、日志查询等精细时间控制的需求场景。通过 GitHub 仓库安装,使用 npx 命令添加技能并指定路径。

移动端应弹出原生时间滚轮,提升输入便捷性与准确性。保存前应将本地时间转为 UTC 再传输,确保跨时区一致性。

来源仓库内路径:skills/syncfusion-angular-datetimepicker

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/syncfusion/angular-ui-components-skills --skil…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

syncfusion-angular-datetimepicker 怎么安装?

在终端执行 npx skills add https://github.com/syncfusion/angular-ui-components-skills --skill syncfusi…。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

syncfusion-angular-datetimepicker 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

syncfusion-angular-datetimepicker 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

syncfusion-angular-datetimepicker 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

syncfusion-angular-datetimepicker 用的人多吗?

公开数据是累计安装 661 次,近一周安装 27 次,下载 212 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

syncfusion-angular-datetimepicker 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理前端设计类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

前端设计类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
frontend-design

前端设计 · Codex、Claude

8,823,360126,072只读MIT通过
vercel-composition-patterns

Vercel 组合模式 · Codex、Claude

3,858,81625,893需要联网MIT通过
vercel-react-native-skills

Vercel React native skills 前端 · Codex、Claude

2,468,66425,878只读MIT通过
adapt

adapt 搜索 · Codex、Claude

2,027,04023,125操作浏览器未明确通过
bolder

bolder 分析 · Codex、Claude

2,004,28823,130只读未明确通过
syncfusion-angular-datetimepicker

syncfusion Angular datetimepicker 命令行 · 本页

661—需要联网未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Implementing Syncfusion Angular DatetimePicker

A comprehensive guide for implementing the Syncfusion Essential JS 2 DatetimePicker component in Angular applications. Learn to create date and time selection interfaces, manage calendars and time pickers, handle events, and customize styling.

DatetimePicker Overview

The Syncfusion Angular DatetimePicker component is a combined date and time selection widget that provides:

  • Integrated Date & Time Selection: Calendar popup for dates + time picker dropdown for time selection
  • Flexible Formatting: Custom date formats, time formats, and locale-aware formatting
  • Calendar Views: Month (default), Year, and Decade views with smooth navigation
  • Time Intervals: Configurable step intervals (15, 30, 60 minutes, etc.) for time selection
  • Range Constraints: Min/max dates and min/max time with strict validation
  • Comprehensive Event System: change, focus, blur, open, close, created, destroyed, navigated, renderDayCell events
  • Masked Input Support: Optional masked input format for guided user entry
  • Persistence & RTL: State persistence across reloads and right-to-left language support
  • Advanced Features: Strict mode validation, floating labels, keyboard customization, timezone support
  • Accessibility: Full WCAG 2.2 compliance, keyboard navigation, WAI-ARIA support
  • Theme Support: Material, Bootstrap, Tailwind, Fabric with light/dark variants
  • Mobile Optimized: Full screen mode on mobile devices, touch-friendly interface

Package: @syncfusion/ej2-angular-datetimepickers

Documentation Navigation

Read the following references based on your specific needs:

Getting Started

📄 Read: references/getting-started.md

  • Package installation via npm and ng add
  • NgModule vs Standalone component setup
  • CSS theme imports and dependencies
  • Basic datetimepicker implementation
  • Component initialization and running the application
  • Development server setup

Basic Implementation

📄 Read: references/basic-implementation.md

  • Simple datetime picker with ngModel
  • Two-way data binding patterns
  • Readonly and disabled states
  • Basic validation and constraints
  • Event handling fundamentals
  • ViewChild component access

Date & Time Configuration

📄 Read: references/date-time-configuration.md

  • Date format customization (format property)
  • Time format configuration (timeFormat property)
  • ISO date string handling
  • Date range constraints (min/max dates)
  • Time range constraints (minTime/maxTime)
  • Parsing multiple input formats (inputFormats)

Calendar & Time Views

📄 Read: references/calendar-and-time-views.md

  • Calendar view modes (month, year, decade)
  • Start and depth properties for view control
  • Time picker popup configuration
  • Time step intervals and granularity
  • ScrollTo position for time scrolling
  • Today button and clear button behavior

Events & Callbacks

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

  • Change event with ChangedEventArgs
  • Focus/blur event handling
  • Open/close popup events
  • Created/destroyed lifecycle events
  • Navigate event for calendar navigation
  • RenderDayCell for custom day styling
  • Cleared event when clear button is used

Methods & Imperative Access

📄 Read: references/methods-and-imperative-access.md

  • ViewChild access and component references
  • currentView() to get active calendar view
  • navigateTo() for programmatic navigation
  • focusIn/focusOut for focus management
  • destroy() for cleanup and resource release
  • getPersistData() for state persistence

Advanced Features

📄 Read: references/advanced-features.md

  • Masked input mode with mask placeholders
  • State persistence across page reloads
  • RTL (Right-to-Left) language support
  • Floating label types and behavior
  • Strict mode validation and error states
  • Keyboard shortcuts and key configuration
  • Timezone offset handling
  • Full screen mode for mobile devices
  • Clear button visibility and behavior

Styling & Customization

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

  • CSS class customization (cssClass property)
  • Theme selection and switching
  • Dark mode implementation
  • Component width and z-index configuration
  • HTML attribute injection (htmlAttributes)
  • Calendar mode selection (Gregorian vs Islamic)
  • Day header format options
  • Disabled dates and styling states

Accessibility & Globalization

📄 Read: references/accessibility-and-globalization.md

  • WCAG 2.2 and Section 508 compliance standards
  • WAI-ARIA attributes and roles
  • Keyboard navigation (arrows, enter, space, escape)
  • Screen reader compatibility and announcements
  • Localization and locale property usage
  • Day header format variations
  • First day of week customization
  • Week numbers and week rules
  • RTL text direction support

API Reference

📄 Read: references/api-reference.md

  • Complete property reference with types and defaults
  • All method signatures with parameters and return types
  • All events with event argument types
  • Property descriptions and use cases
  • Method examples and common patterns
  • Type interfaces and enums
  • Key configuration for keyboard shortcuts
  • Comprehensive property-by-property guide

Quick Start Example

// app.component.ts
import { Component } from '@angular/core';
import { ChangedEventArgs } from '@syncfusion/ej2-datetimepickers';

@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.css']
})
export class AppComponent {
  // Simple datetime value
  dateTimeValue: Date = new Date();

  // Configuration
  minDate: Date = new Date(2020, 0, 1);
  maxDate: Date = new Date(2030, 11, 31);
  dateFormat: string = 'dd/MM/yyyy hh:mm a';
  timeFormat: string = 'hh:mm a';

  // Event handler
  onDateTimeChange(args: ChangedEventArgs): void {
    console.log('Selected DateTime:', args.value);
    console.log('Event Type:', args.type);
  }

  onPopupOpen(): void {
    console.log('Popup opened');
  }

  onPopupClose(): void {
    console.log('Popup closed');
  }
}
<!-- app.component.html -->
<div style="padding: 20px;">
  <h2>Select Date & Time</h2>

  <ejs-datetimepicker
    id="datetimepicker"
    [value]="dateTimeValue"
    [format]="dateFormat"
    [timeFormat]="timeFormat"
    [min]="minDate"
    [max]="maxDate"
    placeholder="Select date and time"
    (change)="onDateTimeChange($event)"
    (open)="onPopupOpen()"
    (close)="onPopupClose()">
  </ejs-datetimepicker>

  <p *ngIf="dateTimeValue">
    Selected: {{ dateTimeValue | date:'medium' }}
  </p>
</div>

Common Patterns

Pattern 1: Datetime Range Selection

Select a start and end datetime for appointments, bookings, or events:

export class AppComponent {
  startDateTime: Date = new Date();
  endDateTime: Date = new Date(Date.now() + 3600000); // +1 hour

  onStartChange(args: ChangedEventArgs): void {
    // Ensure end is after start
    if (this.endDateTime <= args.value) {
      this.endDateTime = new Date((args.value as Date).getTime() + 3600000);
    }
  }
}

Pattern 2: Business Hours Only

Restrict time selection to business hours (9 AM - 5 PM):

export class AppComponent {
  minTime: Date = new Date(2026, 2, 24, 9, 0);  // 9:00 AM
  maxTime: Date = new Date(2026, 2, 24, 17, 0); // 5:00 PM

  datetimeValue: Date = new Date(2026, 2, 24, 10, 0);
}
<ejs-datetimepicker
  [value]="datetimeValue"
  [minTime]="minTime"
  [maxTime]="maxTime"
  timeFormat="hh:mm a">
</ejs-datetimepicker>

Pattern 3: Masked Input for Guided Entry

Use masked input to guide users through the datetime format:

export class AppComponent {
  datetimeValue: Date;
  maskPlaceholder = {
    day: 'dd',
    month: 'mm',
    year: 'yyyy',
    hour: 'hh',
    minute: 'mm',
    second: 'ss'
  };
}
<ejs-datetimepicker
  [value]="datetimeValue"
  [enableMask]="true"
  [maskPlaceholder]="maskPlaceholder"
  format="dd/MM/yyyy hh:mm:ss">
</ejs-datetimepicker>

Pattern 4: Reactive Forms Integration

Integrate datetimepicker with Angular Reactive Forms:

import { FormBuilder, FormGroup, Validators } from '@angular/forms';

export class AppComponent {
  appointmentForm: FormGroup;

  constructor(private fb: FormBuilder) {
    this.appointmentForm = this.fb.group({
      appointmentDateTime: [
        new Date(),
        [Validators.required]
      ]
    });
  }

  submitForm(): void {
    if (this.appointmentForm.valid) {
      console.log(this.appointmentForm.value);
    }
  }
}
<form [formGroup]="appointmentForm">
  <ejs-datetimepicker
    formControlName="appointmentDateTime"
    format="dd/MM/yyyy hh:mm a">
  </ejs-datetimepicker>

  <button (click)="submitForm()" [disabled]="!appointmentForm.valid">
    Submit
  </button>
</form>

Pattern 5: Disabled Dates

Disable weekends and specific dates:

export class AppComponent {
  datetimeValue: Date;

  onRenderDayCell(args: RenderDayCellEventArgs): void {
    // Disable weekends (0 = Sunday, 6 = Saturday)
    if ((args.date as Date).getDay() === 0 || (args.date as Date).getDay() === 6) {
      args.isDisabled = true;
    }

    // Disable specific dates
    const disabledDates = [5, 15, 25]; // 5th, 15th, 25th of each month
    if (disabledDates.includes((args.date as Date).getDate())) {
      args.isDisabled = true;
    }
  }
}
<ejs-datetimepicker
  [value]="datetimeValue"
  (renderDayCell)="onRenderDayCell($event)">
</ejs-datetimepicker>

Key Properties Reference

PropertyTypePurpose
valueDateSelected datetime value for two-way binding
formatstringDate display format (e.g., 'dd/MM/yyyy hh:mm a')
timeFormatstringTime display format in popup (e.g., 'hh:mm a')
minDateMinimum selectable date
maxDateMaximum selectable date
minTimeDateMinimum selectable time
maxTimeDateMaximum selectable time
stepnumberTime interval in minutes (15, 30, 60)
enabledbooleanEnable/disable the component
readonlybooleanMake input readonly (select from popup only)
placeholderstringPlaceholder text in input
enableMaskbooleanEnable masked input mode
strictModebooleanEnforce valid values only
enableRtlbooleanRight-to-left language support
enablePersistencebooleanPersist value across page reloads
startCalendarViewInitial calendar view (Month/Year/Decade)
depthCalendarViewMaximum calendar view level
localestringLocale for formatting (e.g., 'en-US', 'de-DE')

Common Use Cases

Appointment Booking System

  • Use date range selection with business hours time constraints
  • Display available time slots based on min/max time
  • Handle form validation with required validators
  • Show selected datetime confirmation

Event Scheduling

  • Select start and end datetimes for events
  • Disable weekend dates with renderDayCell
  • Use step intervals for common durations (30, 60 min)
  • Format output for API submission

Shift Management

  • Select shift start and end times
  • Apply shift time constraints (min/max time)
  • Handle date transitions (shifts spanning midnight)
  • Support multiple timezone offsets

Billing & Invoicing

  • Select invoice date and time
  • Restrict to past dates only
  • Display in user's locale format
  • Export with ISO format

Next Steps

  1. Start with Getting Started → Install and configure the component
  2. Build Basic Implementation → Create simple datetime pickers
  3. Add Event Handling → Respond to user interactions
  4. Implement Advanced Features → Add masked input, persistence, RTL
  5. Customize Appearance → Apply themes and custom styles
  6. Ensure Accessibility → Support keyboard and screen readers
  7. Reference API → Consult complete API documentation as needed

Ready to get started? Begin with references/getting-started.md for installation and setup instructions.

平台分布

Codex

37.54%
按下载量换算80

Claude

30.56%
按下载量换算65

Cursor

18.53%
按下载量换算39

Gemini CLI

8.46%
按下载量换算18

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

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

继续浏览同类 Skills