Hi guys! I know this a very noob question that I'm asking and I'm very sorry, but I would like to know how can I convert a object value into a string or better yet into a date range format? such as "2000-01-01 - 2001-02-02" or "January 1, 2000 - January 20, 2000".
I'm very sorry again for this question, sine my knowledge in JavaScript isn't advance. I would very appreciate the help.
Are you trying to convert a DateTime object into a string, if I'm not wrong?
You can use the moment library in Retool. moment(your date obj).format("LL")
.
Thanks it worked! however, it only shows the start date value. I wanted it to show both start and end.
I manage to do it with .start and .end
However, I would like the format to be:
March 15, 2023 - April 20, 2023
You can generate the same string output. I've used a date range component and a JavaScript query to generate your desired format.
Thanks! this helps a lot! 