EJ2 Angular Datepicker With Current Date Quick Start

Sample date Updated on Sep 13, 2025
angular-datepicker angular4 angular4-component current-date datepicker dateselector ej2-datepicker ng-datepicker

A quick start project that helps you to create the Syncfusion Angular 4 DatePicker rendered with current date.

Angular 4 DatePicker with current date

This is a Angular 4 project generated using Angular CLI version 1.4.10.

How to run this application?

To run this application, you need to first clone the ej2-current-date-datepicker repository and then navigate to its appropriate path where it has been located in your system.

To do so, open the command prompt and run the below commands one after the other.

git clone https://github.com/SyncfusionExamples/ej2-current-date-datepicker ej2-current-date-datepicker
cd ej2-current-date-datepicker

Installing

Once done with downloading, next you need to install the necessary packages required to run this application locally. The npm install command will install all the needed angular packages into your current project and to do so, run the below command.

npm install

Running on development server

Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI README.

Up arrow