Added function compareYmdhisDate in global_functions.