adding default date to exercise and water for #24, modularizing date format code intoapp/date-functions.js