How do you use moment.js inside a view in Ionic?

Thanks :slight_smile:

I guess the only way to do this is by using a pipe. How do you use it?

I posted a link to a complete working pipe earlier in this very thread.

Either or, momentjs has locale settings you can use. As I said, I only use it because when I started the project I didn’t know the existence of date-fns. I will likely switch to that or try it in subsequent projects.

moment.locale(β€˜en’);

Switching to spanish would likely just be

moment.locale(β€˜es’);

Check this post How to install moment.js package and use it in an Ionic app?. It answers your question.