adding preemptive functions to datetime, integrating gridy before changing it.