module SmocaBuildHelper

  # Date Boxes through date_field require YYYY/MM/DD string format.
  # This converts a time object to the appropriate format
  # @param time Time The time you would like to use in a date_field object
  # @return String A string representation of time as YYYY/MM/DD, to fill in a date_field object
  def time_to_date_box(time)
    return time.strftime('%Y-%m-%d')
  end
end
