     @setState view: "days"
   
   render: ->
-    datetime = do @moment
+    datetime = do @getMoment
     
     {yearsRange} = @props
     {yearsOffset} = @state

  parseFormat: (format)->
    format.split formatRegex
  
  moment: ->
    {format} = @props
    {value} = @state
    moment value, format

  toggleAPM: -> @changeValue -> if 12 >= do @hour then @add 12, "h" else @subtract 12, "h"
  
  render: ->
    datetime = do @getMoment
    tokens = @parseFormat @props.display
    
    table null,
