Dealing with java date is my biggest fight since forever.
I just received date like for example: 1998-01-05T00:01:00+01:00
Is there a way to get the first 10 characters without cutting string? Angular2 offers date pipe but I don't know if and how could I use that here.
Thank you for your help.
PS: java.sql.Date is not an option
I just resolve this problem thanks to Angular2 DatePipe processing ISO 8601 Date (Invalid argument '*' for pipe 'DatePipe')?
I've created my own pipe.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.