# functions related to Date-fields # ----------------------------------------------------- """ additionally functions for calculating date with formulas like [DATE+2M] and for comparison of date related on two reference-dates """ import datetime F_DIR = "%Y-%m-%d_%H-%M-%S" def getActdate(format): return getFormatdate(datetime.datetime.now(), format) def getFormatdate(date, format): """ it return the date as string in the format """ return date.strftime(format)