Marek's answer is good but the Rails way is:
module NormalizeDateModule
extend ActiveSupport::Concern
included do
after_validation :normalize_date
end
def normalize_date
self.created_at = return_DateTime(created_at)
end
end
(and you have a decicated folder for it: models/concerns)