I noticed that lightning have some problem with datetime format. Seems like issue with
$Locale.dateTimeFormat that returns wrong value. I set-up my Salesforce org User locale settings to English(United States) so I expecting datetime value formatted according to Supported Locales:
2/07/2018 8:00 AM but I recieved datetime in following format:
Jul 2, 2018 8:00:00 AM. Additionally line:
console.log($Locale.dateTimeFormat); shows following format:
MMM d, yyyy h:mm:ss a.
This is known and reported Issue or I need additional configuration for correct datetime formats on Lightning JS side?