Imagine I've got a Publish Model.
and something record within the database is going to be:
23|title_here|content_here|2011-02-20 08:01:55.583222|2011-02-20 08:01:55.583222
and also the latter area (
2011-02-20 08:01:55.583222|2011-02-20 08:01:55.583222 ) would be the produced_at and up-to-date_at area.
post = Post.find_by_id(23)
Question: How do i obtain the produced_at string: "
2011-02-20 08:01:55.583222" within the database?
As you may know, the publish.produced_when needed return a
ActiveSupport::TimeWithZone object, not the raw string.
You are able to call such as this also:
based on Accessing attributes before they have been typecasted link.