When I set the type to "date string" and used the "yyyy/mm" format in Safari,
the date was displayed as an invalid date.
Is it recommended to use "string" instead of "date string" for type to prevent this?
We are not currently considering using "yyyy-mm".
Hello,
Thank you for reaching out to us.
The date is displayed as an invalid date because Flexmonster does not support both "yyyy/mm"
and "yyyy-mm"
input formats. Kindly note that Flexmonster supports the following input date formats:
The input format of the date should only be ISO 8601 or Unix timestamp. This way, the dates will be displayed in all the browsers.
If you want to display the date in "yyyy/mm"
formats on the grid, you can set the necessary format in the Report object. For example:
report: {
// other configurations
options: {
datePattern: "yyyy/MM",
}
}
Please check the following JSFiddle for reference: https://jsfiddle.net/flexmonster/vdymgkjz/. You are welcome to check the following guide for reference: https://www.flexmonster.com/doc/date-and-time-formatting/.
Please let us know if it works for you. Looking forward to hearing your feedback.
Kind regards,
Nadia
Hello Yohei,
Hope you are doing well.
We were wondering if you had a chance to check the suggested approach. Could you please confirm if it works for you?
Looking forward to hearing from you.
Kind regards,
Nadia