> For the complete documentation index, see [llms.txt](https://docs.emobiq.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.emobiq.com/emobiq-client/006-actions-and-visual-logic/action-reference/cordova/object/strtodate.md).

# strToDate

## Description

Displays a date in a full text description.

E.g. Thu Jul 06 2023 18:35:58 GMT+0800 (Singapore Standard Time)

## Input / Parameter

| Name | Description                            | Input Type  | Default        | Options | Required |
| ---- | -------------------------------------- | ----------- | -------------- | ------- | -------- |
| date | The date to be displayed in full text. | String/Text | (Current-Date) | -       | No       |

## Output

| Description                        | Output Type |
| ---------------------------------- | ----------- |
| Returns the full text of the date. | String/Text |

## Callback

N/A

## Video

Coming soon.

## Example

The user wants to convert date string to DateTime and print it in the console.\
date : 2018-04-12<br>

### Step

1. Call the `console` function. Call the `strToDate` function inside the `value` parameter of the `console` function.

   ![](/files/0wqXdFSQaCwVspjwklz4)

   ![](/files/2jt6xVuNMQblUupHj25F)

### Result

![](/files/P4sEIpuko6jmPezOkVXh)

## Links
