Get date and time in seconds using new Date().valueOf()