Skip to content

minDate format "new Date(miliseconds)" not supported? #32

@JeanMertz

Description

@JeanMertz

It seems when I do:

= f.datepicker :expire, dateFormat: 'dd-mm-yy', minDate: 'new Date()'

Things work correctly (that is, I can't go lower than todays date)

However, this doesn't work:

= f.datepicker :expire, dateFormat: 'dd-mm-yy', minDate: 'new Date(1289430000000)'

This time, I shouldn't be able to go lower than "11-11-2010" but I still can.

I verified that this should work by using the following, which worked correctly:

:javascript
  $( "#datepicker" ).datepicker({ minDate: new Date(1289430000000) });

Any idea what might be going on here?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions