Pick only Date from Updated Date in my dataset?

Hey,

can anyone help me to get only the date (without the time) from Updated Date / Created Date in the dataset?
I need it to be in this format DD/MM/YYYY

I found a way to do this with other date picker. but i can’t find a way to do this one.

please help

Thanks!

let item = $w("#dataset").getCurrentItem();
let dateField = item.dateFieldKeyHere;
dateField = dateField.toLocaleDateString();
// That gets only the date string of the value