I am trying to get current Date and Time from back end

@brazitikos-asterios Let’s say you do this

let myDate = new Date();

That code you run in your page and then you have a backend module function called getMyThing which takes a parameter, your date.

let result = await getMyThing(myDate);

That will send in the locally created date from your page to your backend and you can use it there how you want.