Update date.js

changed function to inDate();