> For the complete documentation index, see [llms.txt](https://docs.dckapintegrator.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.dckapintegrator.com/tutorials/workflow-builder-tutorial/2.-hello-workflow/2.7-lets-format-data.md).

# 2.7 🎨 Let's Format Data

Seven Conversion Options Available:

1. **JSON to String** — Convert structured JSON data into plain text format.
2. **String to JSON** — Convert plain text into structured JSON data.
3. **XML to JSON** — Convert XML formatted data into JSON format.
4. **JSON to CSV** — Convert JSON data into comma-separated values for spreadsheets or exports.
5. **CSV to JSON** — Convert comma-separated data into structured JSON format.
6. **Generate Timestamp** — Create a timestamp for the current date and time.
7. **Convert Time Zone** — Convert time values from one time zone to another.

Create a Batch Workflow and use a **Formatter** tool. Choose the **Generate Timestamp** option and give a sample date. Enable console log for this step as well as in the Workflow Settings. Save and execute the workflow to find the formatted result.

<figure><img src="/files/xQnAoTsupNo66FkDhJHW" alt=""><figcaption></figcaption></figure>

#### 🎉 You have successfully used a formatter inside your workflow!

\
\
Add another **Formatter** to **Convert JSON to CSV** passing&#x20;

```
[
  {
    "name": "John Doe",
    "age": 30,
    "email": "john@example.com",
     "street": "123 Main St",
      "city": "New York",
      "zip": "10001"
  },
  {
    "name": "Jane Smith",
    "age": 25,
    "email": "jane@example.com",
      "street": "456 Elm St",
      "city": "Los Angeles",
      "zip": "90001"
  }
]
```

Enable console log for the step and execute and check logs.

<figure><img src="/files/9zOJjtAhY83Lh8C7QieJ" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.dckapintegrator.com/tutorials/workflow-builder-tutorial/2.-hello-workflow/2.7-lets-format-data.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
