Is there simple way to add the word 'at' in between my date and time so it reads like this: Jan 20, 2015 at 11:49 AM, instead of Jan 20, 2015, 11:49 AM. I tried long and full but I do not want the seconds and locale showing.
2015-01-20 16:49:07+00:00
{{ myDate | date : 'medium' }}
You can by adding a new
Custom Pipeor by dealing yourDatePipe (Angular built-in)in your componentHave attached a Stackblitz Demo for your reference
Method #1 - Custom Pipe
Method #2 - Date Pipe in Component
Method #3 - Add
atinside the date format (DatePipe in Component)Method #4 - Add
atinside the date format (DatePipe in HTML)Template
Component
NOTE:
11:49 AMavoid usingmediumsince it includes seconds e.g11:49:29 AMMMM d, y, h:mm aor you can find more formats at Angular's DatePipe Documentation