         $("body").append("<div class=\"helper\">#{ @task.name }</div>")
         $(".helper")
     @date.datepicker()
+    if parseInt(@date.val())
+      @date.datepicker("setDate", new Date(parseInt(@date.val())))
     @
 
   update: (task) =>

    # Make notes editable
    'focus .notes': 'notesEdit'
    'blur .notes': 'notesSave'


  constructor: ->

      @task.updateAttribute "notes", text

  # ----------------------------------------------------------------------------
  # DATES
  # ----------------------------------------------------------------------------
  datesSave: =>
    @task.updateAttribute "date", new Date(@date.val()).getTime()

  # ----------------------------------------------------------------------------
  # TAGS
  # ----------------------------------------------------------------------------

