That was my first instinct and preference. Agreed, will modify later today.

On Monday, June 3, 2013, Pete Bacon Darwin wrote:

> In src/date.js:
>
> > @@ -93,7 +93,7 @@ angular.module('ui.date', [])
> >        if ( dateFormat ) {
> >          // Use the datepicker with the attribute value as the dateFormat string to convert to and from a string
> >          modelCtrl.$formatters.push(function(value) {
> > -          if (angular.isString(value) ) {
> > +          if (angular.isString(value) || (angular.isNumber(value) && dateFormat === '@')) {
>
> I am thinking that actually here we should simply do:
>
> if ( !angular.isDate(value) ) {
>
> then let jQuery.datepicker deal with invalid formats.
>
> @jrschumacher <https://github.com/jrschumacher> - What do you think?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/angular-ui/ui-date/pull/7/files#r4496054>
> .
>


-- 
Ryan Schumacher

twitter / @jrschumacher <http://twitter.com/jrschumacher>