JSFiddle - React, Tailwind, and code Playground
by B L Praveen
HTML
<script src="https://raw.github.com/phstc/jquery-dateFormat/master/dist/jquery-dateFormat.min.js"></script>
JavaScript
regexp = (/\d{2}:\d{2}:\d{2}(\s+)([,])(\s+)[0-9]{1,2}(\s+)[a-zA-Z]{3}(\s+)\d{4}?/);
jQuery.format.date.defaultShortDateFormat = 'dd/MM/yyyy';
jQuery.format.date.defaultLongDateFormat = 'dd/MM/yyyy HH:mm:ss';
console.log(jQuery.format.date('00:00:00 , 29 Dec 1986', jQuery.format.date.defaultShortDateFormat));
value = '00:00:00 , 29 Dec 1986';
console.log(value.search(regexp));