Way to get the date YYYY-MM-DD without time?

Giuseppe with JavaScript!

JS
var date = new Date();
var format = date.toISOString().slice(0, 10);
return format
Component Details

You need the Arbitrary Javascript component made by Pragmaflow. Nowadays there’s a error when downloading components from their site. For download them you can follow these steps : Every new beginning comes from some other beginnings end - #48 by James_App_Maker And Pragmaflow created a video of this way too : Installing Adalo Github components walkthrough - YouTube

Also you can use a API like @Abracadalo as Nathan mentioned! : String API | Abracadalo API Handbook

Thank you

1 Like