ADDED: setDate in debug mode