set input 201001111357set date [string range $input 0 7]set time [string range $input 8 end]set output [clock format [clock scan "$date $time"] -format "%D %R"]puts $output
Originally posted by Chris Williams
An ISO 8601 point-in-time specification, such asCCyymmddThhmmss, where T is the literal T,CCyymmdd hhmmss, orCCyymmddThh:mm:ss.Note that only these three formats are accepted. The command does not accept the full range of point-in-time specifications specified in ISO8601.