There are several occasions customer would have requested to change the date format in your application to be in small case as follows.
Since it converts the whole format in lowercase, you can split it in two and apply the lowercase only for the period as follows
that's it, it is easier rather than using a custom pipe! Here is the working demo
Tuesday, December 19, 7:00 am
Since the date format does not support the above format, either we can display entire thing in small case with the lowercase pipeSince it converts the whole format in lowercase, you can split it in two and apply the lowercase only for the period as follows
{1234567 | date:'EEEE, MMMM d, h:mm '} {1234567 l date:' a' | lowercase }
that's it, it is easier rather than using a custom pipe! Here is the working demo
No comments:
Post a Comment