Here are some logs:
dtBegin = Fri Dec 10 2021 21:52:33 GMT-0500 (Eastern Standard Time)
[onReady callback registered] on wix-dataset
[datasetReady event] triggered on wix-dataset
[datasetReady event] triggered on wix-dataset
TheDate=Sat Dec 11 2021 02:52:33 GMT+0000 (Coordinated Universal Time)
Somebody can explain How can have two different GMT date while creating a variable in the front-end and in the back-end. See highlight above.
The code is
dtBegin = new Date(); //created in front end
TheDate = new Date(); //created from the back end