Open shivamsouravjha opened 5 months ago
import ( "fmt" "strings" "github.com/araddon/dateparse" ) func main() { stringDate := "music, coding, artd" s := strings.TrimSpace(stringDate) date, err := dateparse.ParseAny(s) fmt.Println(date, err) }
@shivamsouravjha - validation was added in the forked package https://pkg.go.dev/github.com/itlightning/dateparse -- your example should properly fail to parse "music, coding, artd" in the updated package.
"music, coding, artd"