I have a code that works for items but it does not work on repeaters, if someone can adapt it to work on repeaters let me know, thanks.
var options = { year: 'numeric', month: 'short', day: 'numeric', weekday: 'long' };
$w.onReady(function () {
// Get the date from the date field of the current item
const date = $w("#dynamicDataset").getCurrentItem()._createdDate;
// Set the text element to display the date using the user's settings
const option = {
day: "numeric",
year: "numeric",
month: "short",
weekday: "long"
};
// Sets the property of the text element to be a string representing today's date in US English
$w("#text15").text = date.toLocaleDateString("pt-BR", options);
});