Skip to content

Commit

Permalink
Adiciona metodo
Browse files Browse the repository at this point in the history
  • Loading branch information
armando-couto committed Mar 22, 2021
1 parent 75abe6b commit 40dbb26
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions conversoes.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@ func ConvertStringToTimeLayoutDD_MM_YYYY_HH_MM_SS(value string) time.Time {
return t
}

func ConvertStringDD_MM_YYYY(date string) time.Time {
t, _ := time.Parse(LAYOUT_DD_MM_YYYY, date)
return t
}

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

0 comments on commit 40dbb26

Please sign in to comment.