       top: offset.top + @height
       left: offset.left
 
-  getISOString: ->
-    DateTools.formatDate(@date, {
-      separator: '-'
-      parts: ["yyyy", "mm", "dd"]
-    })
-
   update: ->
     @date = DateTools.parseDate(
       if @isInput then this.element.prop('value') else @element.data('date'),

      @date = DateTools.today()

    if @date != null
      @viewDate = new Date(@date)
    else
      @viewDate = DateTools.today()

    @fill()

  fillDow: ->

    separator = format.match(/[.\/-].*?/)
    parts = format.split(/\W+/)
    if !separator || !parts || parts.length == 0
      throw new Error("Invalid date format.")  
    
    {
      separator: separator
      parts: parts
