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

How to change the date format on the task tooltip

Thread ID:





147512 Sep 13,2019 11:56 AM UTC Sep 16,2019 11:09 AM UTC Vue 3
Tags: Gantt Chart
Adam Moroff
Asked On September 13, 2019 11:56 AM UTC

I have configured my gantt chart with the following date format:  dd/mm/yyyy.  However when I hover over a task the tooltip specifies the date as mm/dd/yyyy.  

How can I configure the date format in the tooltip?

See the attached screenshot for reference.

Thank you.,

Attachment: gantt_d367140f.zip

Gurunathan A [Syncfusion]
Replied On September 16, 2019 06:07 AM UTC

Hi Adam, 
Good day to you.  
We can customize the Gantt default tooltip by using the property tooltipSettings.taskbar. We have prepared a sample with custom tooltip, please find the code snippets for this below. 
<div id="tooltip"> 
          <td>Start Date</td> 
import { Internationalization } from "@syncfusion/ej2-base"; 
let instance = new Internationalization(); 
export default { 
  data() { 
    return { 
      data: {} 
  methods: { 
    format: function(value) { 
      return instance.formatDate(value, { format: "MM/dd/yyyy" }); 
</script> [App.vue] 
       <ejs-gantt ref='gantt' id="GanttContainer" : dataSource="data" :tooltipSettings="tooltipSettings"> 
</template > 
import template from "./template.vue"; 
  export default { 
                data: function () { 
                    return { 
                        tooltipSettings: { 
                            taskbar: function () { 
                                return { template: template } 
Please find the below sample and documentation link. 
Please let us know, if you require further assistance on this. 

Adam Moroff
Replied On September 16, 2019 10:53 AM UTC

Thank you sir. Much appreciated. 

Gurunathan A [Syncfusion]
Replied On September 16, 2019 11:09 AM UTC

Hi Adam, 
We are happy to assist you.  



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