For our Angular 4 application I'm using ngx-translate with messageformat.js for handling internationalization and localization. Is it possible to get the format string of shortdate of a date object ie. 'YYYY-MM-dd'?
ie: new Date().formatString('en-US')
returns: 'YYYY-MM-dd'