Despite the COVID-19 outbreak, our team continues operating at full speed. We are always here to support and answer all your questions.

Feel free to reach out by filling this quick form.

Fill the form
Get Free Trial

Date pattern is not applying to rows

Answered
shilpi asked on April 24, 2020

Hi Team,
Date pattern is not applying to rows.
Type passing as “date string”. Added pattern as

datePattern: “MMM ddd, yyyy”

still date is not converted.
 
http://prntscr.com/s51raj
 
Regards
Shilpi
 

3 answers

Public
Illia Yatsyshyn Illia Yatsyshyn Flexmonster April 24, 2020

Hello, Shilpi,
 
Thank you for reaching out to us.
 
Our team would like to kindly inform you that we did not manage to reproduce the described behavior.
 
Please see an example we have prepared while trying to reproduce the issue.
 
It would be useful for our investigation if you could modify the example above in the way the problem can be seen.
 
We are looking forward to hearing from you.
 
Kind regards,
Illia

Public
shilpi April 24, 2020

Hi Illia,
 
I checked the example its working fine, but in my angular application its not.

dataSource: {
        dataSourceType: “json”,
          data: this.data,
          mapping: {
        coldate: {
          type: “date string”
        }
      }
      },

Error is
core.js:4799 ERROR TypeError: Cannot read property ‘split’ of undefined
at Function.X9f.ac.x9f.resolve (flexmonster.full.js:9)

Public
Illia Yatsyshyn Illia Yatsyshyn Flexmonster April 27, 2020

Hello, Shilpi,
 
Thank you for your feedback.
 
Our team would like to kindly inform you that we did not manage to reproduce the problem on our side.
 
We have prepared an example that uses Angular in order to demonstrate the recommended approach to define date pattern.
The example itself can be found in attachments.
 
It can be launched using the following commands:

npm install
ng serve

 
We hope it helps.
Do not hesitate to contact us in case of further questions.
 
Best regards,
Illia

Attachments:
datePatternAngular.zip

Please login or Register to Submit Answer