When using the below line I am expecting the result to be '22/09/2017 14:05:43', however it is actually returning '09/10/2018 14:05:43'.
var theDate = new Date('22/09/2017 14:05:43').toLocaleString();
I know there are js libraries out there such as moment.js that can be used for a lot of date time manipulation, but I was just wondering if anyone knew why this was happening and how I can get this to return the expected date?