# ODTIM()

> [HTML Version](odtim().htm)

**ODTIM (date, time , flags)**

**ODTIM\$ (date, time , flags)**

ODTIM() and ODTIM\$() output the specified date and/or time according to the formatting flags. If date and/or time is zero, the current date/time is used. The flags are the same as those used by [Xcall ODTIM](odtim_sbr.md), which see for flag definitions and additional information. 

**History**

2021 June, A-Shell 6.5.1704, compiler edit 947:  Add support for the optional trailing \$.