Given a text field, I want to have a suitable placeholder. A typical placeholder will be something like: \"mm/dd/yyyy\".
However, I would like to use locale-aware d
I don't think it's exposed nicely, but if the browser has its language configured correctly you can do something like this:
var lang = navigator.languages ? navigator.languages : navigator.language;
moment().locale(lang).localeData()._longDateFormat['L']
Languages behave slightly differently depending on which browser you're using, so don't know how reliable this is.