I am using moment.js within an application. When a user logs into the application their locale is set:
moment.locale(userLocale);
I want to add a placeholder to an input field that represents the date format expected, based on the user's locale:
<input type="text" placeholder="dd/mm/yyyy" />
Is there a way to get the string 'dd/mm/yyyy' from moment?