Page 1 of 1

Date Format Issue

Posted: Wed Apr 26, 2023 5:44 am
by 17795639
I having date format issues
it should be 00:00:00 07-Apr-2023

Code: Select all

  
     this.TChart.axes.bottom.visible = true;
      this.TChart.axes.bottom.labels.dateFormat = "HH:mm:ss dd-MMM-yy";    
      this.TChart.axes.bottom.title.text = "\nDateTime";
      this.TChart.axes.bottom.grid.visible = true;  
      this.TChart.axes.bottom.automatic = true;
      
        for (var t = 0; t < _data.xData.length; t++) {         
        	
       	   // sample date from data  "2023-04-06T21:26:05.72-05:00"        
          const _date_ = new Date(_data.timeStampData[t]);      
          this._series0.data.x[t] = _date_ ;          
          
          }
      
      
  

Re: Date Format Issue

Posted: Tue May 02, 2023 2:37 pm
by Marc
Hello,

I've added an option in the combo here, custom3:

https://www.steema.com/files/public/tee ... tetime.htm

code:

Code: Select all

Chart1.axes.bottom.labels.dateFormat = "hh:mm:ss d-mmm-yy";
Regards,
Marc

Re: Date Format Issue

Posted: Wed May 03, 2023 9:51 am
by 17795639
Thanks