If you are using a label widget and want to know how to format a date, see the 'clock format' command.
Here is a little exemple to put the date of the day inside a label:
pack [label .l -text [clock format [clock seconds]]]
'clock seconds' returns the date of the day (in seconds).
'clock format' formats this date with a standard format.
'label' creates a label.
'pack' places and shows the label.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.