Added module for helper functions; added helper for formatting date consistently

This commit is contained in:
2023-07-05 22:27:07 -04:00
parent 291db231d5
commit 691e2e9b1e
4 changed files with 16 additions and 4 deletions
+8
View File
@@ -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