Skip to content
Snippets Groups Projects
Commit d8aa2053 authored by James Page's avatar James Page
Browse files

Merge branch 'human-readable-date-layout-with-time' into 'main'

Added human-readable date layout that includes time

See merge request uafrica/go-utils!28
parents eec1a136 742af365
No related branches found
No related tags found
1 merge request!28Added human-readable date layout that includes time
...@@ -62,6 +62,11 @@ func DateLayoutHumanReadable() string { ...@@ -62,6 +62,11 @@ func DateLayoutHumanReadable() string {
return layout return layout
} }
func DateLayoutHumanReadableWithTime() string {
layout := "02 Jan 2006 15:04"
return layout
}
func DateLayoutTrimmed() string { func DateLayoutTrimmed() string {
layout := "20060102150405" layout := "20060102150405"
return layout return layout
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment