code: function shortTimeToDateString(shortTime) {
  	// valid 24-hour string 00:00
  	var reg24 = /^[0-9]{2}:[0-9]{2}(:[0-9]{2})?$/;
  
  	// valid 12-hour strings: '0:00AM' || '0:00 AM' || '00:00PM' || '00:00 PM' || '00:00:00 AM' || '00:00:00AM'
  	var reg12 = /^[0-9]{1,2}:[0-9]{2}(:[0-9]{2})?\s?(AM|PM)$/i;
  
  	if (reg24.test(shortTime)) {
  		return twentyFourHourTimeToDateString(shortTime);
  	}
  
  	if (reg12.test(shortTime)) {
  		return twentyFourHourTimeToDateString(twelveTwentyfour(shortTime));
  	}
  }
docs: Convert 12-hour or 24-hour clock time formats to valid date strings.
  Example: '1:32PM' => 'Mon Feb 13 2017 13:32 GMT+0000 (WET)'
  
  @param {string} - the clock time you want to convert to a date.
  @returns {string|undefined}