I have to create a custom display template for a Search Results Web Part which returns results in a tabular form.
I have created a custom template with a single row html table with six columns containing the relevent data. The problem is the data returned by the ctx.CurrentItem statements is in the wrong formats. The date strings include time and the user strings include GUID and email address.
In a list view I would use a calculated field and build a formula to reformat the data so it displays the way I want it but I am not sure how to do this in an html table.
Can anyone tell me hwo to go about this?