Forum Discussion

bhavesh-jadav's avatar
7 years ago
Solved

Date formatting issue with Visual API v2.1

Hello there,   I have updated Visual API from 1.13.0 to v2.1.0 but I may have found some issue with the formatting of the date. I am using formatting utils to format the data in visual. With v1.13...
  • bhavesh-jadav's avatar
    bhavesh-jadav
    7 years ago

    Hi v-viig

     

    The reason formatting was not working for date time is because I have to pass date time object while formatting date time and not date time string. Strange thing is that with API v1.13.0 I was passing date time string and it was working fine but with API v2.1 I had to pass date time object.

    I found this solution by looking at the source code of LineDotChart in visual.ts file @line 166.