Modularize date and time