package main
import (
"fmt"
"math"
"time"
)
func main() {
s1 := "20/08/2021"
date1, _ := time.Parse("02/01/2006", s1)
s2 := "25/08/2021"
date2, _ := time.Parse("02/01/2006", s2)
days := int(math.Ceil(date2.Sub(date1).Hours() / 24))
fmt.Println("days: ", days)
}
Output
days: 5