V
V
Vadim Rublev2020-05-24 23:27:21
go
Vadim Rublev, 2020-05-24 23:27:21

Why displays the "left" date-time?

5ecad81c9b9de534548484.png
Why doesn't it display the current date-time?
And how to format the value itself - in the time.Now() function (and not when outputting to the canvas with a printed_function) ?
https://play.golang.org/p/zw-G1yvPe2M

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Pavlyuk, 2020-05-25
@Vadim Rublev

You are using the wrong template for formatting.
In the first function it is correct (02/01/2006), in the second function you need to use it

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question