# timedate() function

The timedate() function returns the
current system time and date in external format (hh:mm:ss dd mmm yyyy).

## Syntax

```
var = timedate()
```

## Parameter(s)

| var | Variable to which the external time and date is returned. |
| --- | --- |

## Description

The parentheses following the
function are required, and never contain any arguments.

## Example(s)

This example shows timedate() used for a menu heading.

```
print @(0,0):’main menu’:@(0,50):timedate():
```

## See also

- [d (date) processing code](https://d3codex.com/processingcodes/d-date-processing-code/)
- [date command](https://d3codex.com/tcl/date-command/)
- [BASIC functions](https://d3codex.com/pickbasic-flashbasic/basic-functions/)
- [mt (mask time) processing code](https://d3codex.com/processingcodes/mt-mask-time-processing-code/)
- [Statements and functions](https://d3codex.com/pickbasic-flashbasic/statements-and-functions/)
- [time() function](https://d3codex.com/pickbasic-flashbasic/time-function/)

---
Source: https://d3codex.com/pickbasic-flashbasic/timedate-function/ - part of the D3Codex reference.
