datetime helper + code to use it