# nowstr

### nowstr()

Returns a string with the current date and time in the format specified in Tools - Options - User settings.

### nowstr(format)

Returns a string with the current date and time in the format specified in the string provided.

## Arguments

Argument | Data Type | Description
format | string or field | The format to use for the date/time string

## Returns

String with the current date and time

## Description

Typically used with phone number strings which may include non-digit characters like spaces or brackets, this function returns a string containing only the digit characters that are present in the input.

## Examples

Assume that

- the local date and time is Monday 29 November 2004 at 13:17

- the user date time format is set to "dd/MM/yyyy HH:mm"

Example | Returns | Description
nowstr() | 29/11/2004 13:17 |
nowstr("MM/dd/h:mmpyy h") | 11/29/2004 1:17pm |

## See Also

nowtzstr()