javascript how to get todays days code example Example: calculate today date javascript var today = new Date();