Format postgres interval type

Why not use moment() ?