mirror of
https://github.com/rjNemo/rentease.git
synced 2026-06-08 19:56:49 +00:00
11 lines
187 B
Go
11 lines
187 B
Go
package time
|
|
|
|
import "time"
|
|
|
|
func ParseFromForm(src string) (time.Time, error) {
|
|
ts, err := time.Parse("2006-01-02", src)
|
|
if err != nil {
|
|
return time.Time{}, err
|
|
}
|
|
return ts, nil
|
|
}
|