Access data in template node using mustache

You need to return an object. so make them all part of that object
eg

msg.hour msg.year etc
Also when sharing code Please read the following post How to share code or flow json it makes it so much easier to read