       @date = DateTools.today()
 
     if @date != null
-      @viewDate = @date
+      @viewDate = new Date(@date)
     else
       @viewDate = DateTools.today()
+
     @fill()
 
   fillDow: ->

    d = new Date(@viewDate)
    year = d.getFullYear()
    month = d.getMonth()
    todayDate = DateTools.today()
    today = todayDate.valueOf()

    @updateRails()
    date = if @date != null then @date else todayDate
    currentDate = if @date != null then @date.valueOf() else 0

    @picker.find('.datepicker-days th:eq(1)').text(Locales[@locale].dates.months[month]+' '+year)

      @element.on {
        focus: $.proxy(@show, this)
        click: $.proxy(@show, this)
        blur:  $.proxy(@hide, this)
        keyup: $.proxy(@update, this)
      }
    else
