2022-12-08 01:12:31 -05:00
|
|
|
helpers do
|
|
|
|
|
|
|
|
def nullable(value)
|
|
|
|
if (value) and (value != '')
|
|
|
|
return value
|
|
|
|
else
|
|
|
|
return 'N/a'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
def date_format(date)
|
|
|
|
dt = date.to_datetime
|
|
|
|
return dt.strftime('%B %d, %Y @ %I:%M:%S %p %Z')
|
|
|
|
end
|
|
|
|
|
2022-12-09 13:44:43 -05:00
|
|
|
def date_format_input(date)
|
|
|
|
dt = date.to_datetime
|
|
|
|
return dt.strftime('%Y-%m-%dT%H:%M:%S')
|
|
|
|
end
|
|
|
|
|
2022-12-08 01:12:31 -05:00
|
|
|
end
|