I am currently working with angular material and using md-datepicker. My goal is to be able to set different date formats depending on the user's selection. For example, if the user chooses 'daily', I want the datepicker to display 'MM/DD/YYYY'. If they choose 'monthly', then it should show 'MMM YYYY', and for 'hourly', it should be displayed as 'MM/DD/YYYY hh:mm'.
If you'd like to see an example, check out this link.
Is this achievable using md-datepicker? I haven't found an option to set the format property in HTML. I've looked into the documentation for $mdDateLocaleProvider, but it doesn't seem to offer the ability to set different formats for different controls.