This routine currently checks if the task ‘year’ is in the future of the current ‘year’. Can anyone help me change it so that it checks if the task ‘date’ is in the future of the current ‘date’. I’m guessing the ‘year’ needs changing but I’m unsure what to (not as simple as ‘data’ is it lol)!
var currentDateTime = time.Now()
taskExpirationDate, _ := time.Parse("2009-01-02", tokens[4])
if taskExpirationDate.Year() > currentDateTime.Year() {
return TaskResponseRegistered
}
return TaskResponsePending
Thank you, though unfortunately I have no idea how I’d integrate that method into my existing code without changing too much. Any pointers appreciated.