Hi, I have a date in this format 2021-05-24 on my retool table, how do i make it look like this Fri, Feb 07, 2024 , using the formate property for columns on tables and moment.js
Docs are here Moment.js | Docs
// Parse date string in UTC timezone
let yourDate = moment.tz('2021-05-24', 'UTC');
let foo = yourDate.format("ddd, MMMM Do YYYY");
return foo;
// returns "Sun, May 24th 2021"
1 Like