title: DataMapper Dates
body: <p>Forgive me if this is a simple answer.</p>
  
  <p>But how do you get a Date from a DataMapper property. For example:</p>
  
  <pre><code>require 'rubygems'
  require 'sinatra'
  require 'datamapper'
  
  class Test
      include DataMapper::Resource
  
      property :id, Serial
      property :created_at, Date
  end
  
  get '/:id' do
      test = Test.get(1)
  
      test.created_at = ?
  end
  </code></pre>