in reply to Converting dates

Super Search for "Date difference" lists, among others, the following nodes. They have plenty of answers for your problem.
_ _ _ _ (_|| | |(_|>< _|