Try to search your question here, if you can't find : Ask Any Question Now ?

Angular DateTime Format

HomeCategory: stackoverflowAngular DateTime Format
Avatarjulie asked 3 months ago

I have this json array with datetime strings. and I am populating this data in the table.


this is html code in my table

<td>{{ archive.startdate | date: 'short' }} - {{ archive.enddate | date: 'dd/MM/yyyy' }}</td>

the result is

2/1/18, 12:00 AM - 01/03/2018 (just want to show i format with different methods)
1/4/2018 - 1/5/2018

what i really want to achieve is the last date to be on the last day of the month instead of starting from first day of following month.

1/02/2018 - 28/02/2018

What did i do wrong? I want to take enddate day,month and year.

1 Answers
Best Answer
Avatarnaveen answered 3 months ago
Your Answer

18 + 19 =

Popular Tags

WP Facebook Auto Publish Powered By :