We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Now button is missing in DateTimePicker

Thread ID:





143308 Mar 13,2019 11:50 AM UTC Mar 14,2019 12:45 PM UTC ASP.NET MVC - EJ 2 1
Tags: DateTimePicker
Guillermo Goberna
Asked On March 13, 2019 11:50 AM UTC

Dear all, 

In asp.net mvc js1, the datetimepicker had a "now" button that was filling the current day and time .e.g. 01/01/2019 14:13

Is this option available in JS2 ? I can not find it, just the "Today" button, but it put 12:00 as an hour always, no matter if is 19:32

That option was very nice in my case as an "Start now" the task, and "End now" the task..

Thank you.

Silambarasan I [Syncfusion]
Replied On March 14, 2019 12:45 PM UTC

Hi Guillermo, 
Thank you for contacting Syncfusion support. 
We have looked into the reported query and your requirement (“Need to update the current date with current time value as like in EJ1 DateTimePicker”) can be achievable as a work around solution. In the that, we have updated the current date and time value in DateTimePicker input when clicking the “Today” button. Please refer the below code example. 
    function onOpen(args) { 
        this.footer.querySelector('.e-today').addEventListener('click', function () { 
            var dateTimeInstance = document.getElementById("datetimepicker").ej2_instances[0]; 
            dateTimeInstance.value = new Date(new Date().toLocaleString()); 
To know more about DateTimePicker, please refer the below UG documentation link.
Could you please check the above solution and get back to us if you require further assistance? 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon