I work in a compliance office and I convinced my boss to start using SharePoint services and part of my job is to build a compliance tracker with dates etc.
I found a good solution here and after some adjustments I got most functions working nicely, except for the dates formatting due to the code being adapted for US dates, but we use UK date formatting.
The following bit of code is for US dates.
My question is: how to amend it so that it works with UK dates?
var CreateDate = new Date(ctx.CurrentItem.CreateDate.split('/'),ctx.CurrentItem.CreateDate.split('/')-1,ctx.CurrentItem.CreateDate.split('/')).getTime();
Perhaps I need to change other bits of the code, and I tried looking online, but I can't get it to work.
I'd appreciate your feedback, alternatively, if you know a better solution, please let me know.
Thanks in advance!