DateTime.

Time.now.strftime("%Y-%m-%d")
Format the Timestamp in to a SQL Time String.

Ram schrieb: