Skip to content

Commit

Permalink
Novo método de data
Browse files Browse the repository at this point in the history
  • Loading branch information
armando-couto committed Mar 22, 2021
1 parent 9cc1186 commit 687ac67
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions conversoes.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ func ConvertStringToTimeLayoutDDMMYYYY(value string) time.Time {
return t
}

func ConvertTimeToStringLAYOUT_DD_MM_YYYY(date time.Time) string {
return date.Format(LAYOUT_DD_MM_YYYY)
}

func ConvertStringToTimeLayoutDD_MM_YYYY(value string) time.Time {
t, _ := time.Parse(LAYOUT_DD_MM_YYYY, value)
return t
Expand Down

0 comments on commit 687ac67

Please sign in to comment.