Help with Date Time format when creating sensor from attribute

See: The EPIC Time Conversion and Manipulation Thread! - #5 by finity and The EPIC Time Conversion and Manipulation Thread! - #2 by finity