Update calendar.js

Add function momentDate(date).