# nowtzstr

### nowtzstr(timeZone)

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

### nowtzstr(timeZone, format)

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

## Arguments

Argument | Data Type | Description
timeZone | string | The time zone to use
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 GMT

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

Example | Returns
nowtzstr("EST") | 29/11/2004 08:17
nowtzstr("PST", "MM/dd/h:mmpyy h") | 11/29/2004 05:17am

## See Also

nowstr()