When the date is set as a string format, it sorts the records based on the string and does not sort the record correctly in the Date string. So, use the dataset and apply the format property in the PivotItem class.
The following screenshots display the date strings before formatting and after formatting:
Figure 1: Before formatting
Figure 2: After formatting
|Article ID:||Published Date:||Last Revised Date:||Platform:||Control:|