===DateFormat=== The **DateFormat** function of the [[mplreport]] class returns a DateTime format string suitable for the chosen report range. For example, a report of less than 24 hours will usually use the **HH:MM** date format, while longer reports will use **%H %d/%m**. ==Parameters== ^Parameter^Type^Default^Meaning^ |starttime|DateTime|None|The starting date. If //None//, the start DateTime for the report will be used.| |endtime|DateTime|None|The ending date. If //None//, the end DateTime for the report will be used.| ==Return== A string containing the format to be used in functions such as **DateTime::strftime**.