Rails DateTime.now without Time
You can use just:
Date.current
What you need is the function strftime:
Time.now.strftime("%Y-%d-%m %H:%M:%S %Z")
You can use one of the following:
DateTime.current.midnight
DateTime.current.beginning_of_day
DateTime.current.to_date