use procedural function to simplified datetime creation