Question: I have a nested field `msgs.crtDtTm` inside a `mongodb` which has epoch date (`1554120000`)stored as string. I need to convert `msgs.crtDtTm` to `Date` format to apply `$gte` (which is not working in String format).

```
cond: { $gte: [ "$msg.crtDtTm", "1554120000" ] }

```

I tried this but greater than operation not performed. It is returning all the nested elements without filtering.

Answer: 
```
=SUBSTITUTE(TRIM(QUERY(TRANSPOSE(QUERY(TRANSPOSE(A2:D),,999^99)),,999^99)), " ", ", ")

```

[![0](https://i.stack.imgur.com/3AVs3.png)](https://i.stack.imgur.com/3AVs3.png)

\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_
------------------------------------------------------------------------------------------------------------

but if you want just numbers from 1 - 300 in CSV then:

```
=ARRAYFORMULA(JOIN(", ", ROW(A1:A300)))

```
You could use `Textjoin`:

```
=TEXTJOIN(",",1,A2:D)

```