Skip to content

This sample explains how to create a Blazor DateTimePicker component in the Blazor Server App. It contains features such as formatting, specific value and etc.

Notifications You must be signed in to change notification settings

SyncfusionExamples/create-blazor-datetime-picker-component-in-blazor-server-app

Repository files navigation

Create Blazor DateTimePicker Component in Blazor Server App

Blazor DateTime Picker is a lightweight and mobile-friendly component that allows end users to enter or select date and time values from a pop-up calendar and drop-down time list. A quick start blazor server app that allows you to configure the Blazor DateTimePicker component of Syncfusion with its available options. This project contains simple code customizations, as well as some important features such as setting specific date time value, formatting and range restriction for date time selection.

Prerequisites

  • Visual Studio 2022

How to run the project

  • Checkout this project to a location in your disk.
  • Open the solution file using the Visual Studio 2022.
  • Restore the NuGet packages by rebuilding the solution.
  • Run the project.

Features and benefits

Custom date and time format

Change the default culture’s specific date and time format in the text box to improve readability or enter the value properly.

Date and time range

You can restrict the DateTime Picker, so that only date and time values within a specific range can be entered or selected by specifying the min and max date time options.

Disable dates

Disable any date in the Blazor DateTime Picker to show it as an inactive date. Easily prevent weekends and holidays from selection by disabling them in the pop-up calendar.

DateTime Picker in multiple languages

Update the culture-specific datetime format and first day of the week, and translate the names of months, days, and today button text to any supported language with our globalization feature.

Date and time validation

Allow only valid values to be entered in the DateTime Picker control’s input by validating them with disabled, out-of-min, and out-of-max date-time.

Custom DateTime Picker

Apart from the standard built-in themes, Blazor DateTime Picker allows complete control to customize its appearance to suit your application.

Highlight weekends

Highlight any date in a year or every weekend in a month as special days using custom styling.

Change the first day of the week

Auto-update the first day of the week based on the specified culture or change it based on your application.

Week number in popup calendar

Show the week number of the selected day in the pop-up calendar by enabling the week number option.

Islamic DateTimePicker

In addition to the Gregorian DateTimePicker, the Blazor DateTimePicker component supports displaying the Islamic DateTimePicker (Hijri DateTimePicker).

Related links

Learn More about Blazor DateTime Picker

Download Free Trial

Pricing

Documentation

View Demos

Community Forums

Suggest a feature or report a bug

Online examples

Knowledge Base

About Syncfusion Blazor Components

The Syncfusion's Blazor components library offers over 70 UI components to work with Blazor server-side and client-side (Blazor WebAssembly) projects seamlessly. In addition to DateTime Picker, we provide popular Blazor Components such as DataGrid, Charts, Scheduler, Diagram, and Word Processor.

About Syncfusion

Founded in 2001 and headquartered in Research Triangle Park, N.C., Syncfusion has more than 28,000 customers and more than 1 million users, including large financial institutions, Fortune 500 companies, and global IT consultancies.

Today, we provide 1700+ components and frameworks for web (Blazor, ASP.NET Core, ASP.NET MVC, ASP.NET WebForms, JavaScript, Angular, React, Vue, and Flutter), mobile (Xamarin, Flutter, UWP, JavaScript, and .NET MAUI), and desktop development (WinForms, WPF, WinUI, Flutter, UWP, and .NET MAUI). We provide ready-to-deploy enterprise software for dashboards, reports, data integration, and big data processing. Many customers have saved millions in licensing fees by deploying our software.


sales@syncfusion.com | www.syncfusion.com | Toll Free: 1-888-9 DOTNET

About

This sample explains how to create a Blazor DateTimePicker component in the Blazor Server App. It contains features such as formatting, specific value and etc.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published