Logo

Programming-Idioms

History of Idiom 184 > diff from v15 to v16

Edit summary for version 16 by plusmid:
New Go implementation by user [plusmid]

Version 15

2019-09-26, 14:02:09

Version 16

2019-09-26, 14:17:34

Idiom #184 Tomorrow

Assign to variable t a string representing the day, month and year of the day after the current date.

Idiom #184 Tomorrow

Assign to variable t a string representing the day, month and year of the day after the current date.

Imports
import "time"
Code
t := time.Now().Add(24 * time.Hour).Format("2006-01-02")