class Avo::Fields::DateField

def formatted_value

def formatted_value
  return if value.blank?
  if @format.is_a?(Symbol)
    value.to_s(@format)
  else
    value.strftime(@format)
  end
end

def initialize(id, **args, &block)

def initialize(id, **args, &block)
  super(id, **args, &block)
  @first_day_of_week = args[:first_day_of_week].present? ? args[:first_day_of_week].to_i : 0
  @picker_format = args[:picker_format].present? ? args[:picker_format] : "Y-m-d"
  @format = args[:format].present? ? args[:format] : :long
  @relative = args[:relative].present? ? args[:relative] : false
end