Hi,
Can anyone tell me how can I calculate the difference between two dates without using the hours
difference.suppose if date1 is “2017-08-16 6:00:00” and date2 is “2017-08-17 1:00:00”.So according to hours calculation using Sub method it will give me 1 day.But I want here 2 day as date is different. So please let me know if there is a way to do it.
Current Sample Code:-
remainingdaydiff := endDateTime.Sub(todayNow)
remainingdays := uint(remainingdaydiff.Hours() / 24)
fmt.Println(remainingdays)