Save current date to Dataset

Hi,
I am not really familiar with coding.
However, I need to save the current date to a user data set.

So when a user clicks the submit button, to save user input, the date and time of submission gets saved to my dataset.

current code;

export function submitbutton1_click_1(event) {$w(‘#dataset4’).save()
.then(() => {
$w(‘#html1’).show(“fade”, fadeOptions);
$w(‘#dropdown1’).hide();
$w(‘#uploadButton1’).hide();
$w(‘#textBox1’).hide();
$w(‘#submitbutton1’).hide();
})
. catch ((err) => {
let errMsg = err;
console.log(errMsg);
});
}

Olufemi,

The created date, updated date, and a unique ID is stored in every record in a Corvid collection. By default they do not show when you view a collection. You have to click on the “Visible Fields” button, and in the dropdown, check the hidden field(s) you want to see.

ooohh, thanks