Hi @amit.saroha,
You can write your custom functions inside the expression file.
With this you will replace all those repeated expressions to reference to the of the expression file, and in feature if you choose to change the format of that dates, you would need only to update the expression file with the new date format.
Here is an example of how you can do that.
Expression File:
{
formatDate: (date) => Date.parse(date).toLocaleDateTimeString({format: "YYYY-MM-DD"})
}
functions from expression file you can call them like this:
lib.ExpressionFileName.formatDate($date)
Regards,
Viktor