Update modules/directives/date/date.js

When a date object is passed in the model instead of string and ui-date-format is set it was not parsing the value. With this patch it parses strings or return the date format to be set in the ui-date