how to access today's date ruby on rails code example Example: ruby get current datetime require 'date' current_datetime = DateTime.now