How do i display the date in UK format - Javascript Aug 14, 2013 By Howie Pearson Here's what i'm currently inputting var currentTime = new Date() var month = currentTime.getMonth() + 1 var day = currentTime.getDate() var year = currentTime.getFullYear() var dateString=month + "/" + day + "/" + year var player = GetPlayer(); player.SetVar("SystemDate",dateString);
Helen Tyson Partner over 10 years ago08/14/13 at 7:27 am (UTC) Hi Howie In line 5 of the script swap around the words 'month' and 'day', making sure you don't add or delete any extra spaces or other characters and it should work fine for you. Regards Helen
2 Replies
Hi Howie
In line 5 of the script swap around the words 'month' and 'day', making sure you don't add or delete any extra spaces or other characters and it should work fine for you.
Regards
Helen
Thanks Helen. That works
This discussion is closed. You can start a new discussion or contact Articulate Support.