Added module for helper functions; added helper for formatting date consistently
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
module Helpers
|
||||
|
||||
def date_format(date)
|
||||
dt = date.to_datetime
|
||||
return dt.strftime('%B %d, %Y @ %I:%M:%S %p %Z')
|
||||
end
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user