# How to pass a data type to google sheet?

**URL:** <https://discourse.nodered.org/t/how-to-pass-a-data-type-to-google-sheet/25158>\
**Category:** General\
**Created:** [19 April 2020 21:20 UTC](https://discourse.nodered.org/t/how-to-pass-a-data-type-to-google-sheet/25158 "2020-04-19T21:20:52Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![calcioscacchi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/calcioscacchi/32/16898_2.png) [@calcioscacchi](https://discourse.nodered.org/u/calcioscacchi)\
**Post date:** [19 April 2020 21:54 UTC](https://discourse.nodered.org/t/how-to-pass-a-data-type-to-google-sheet/25158/3 "2020-04-19T21:54:08Z")

</div>

That's not the problem, i'm afraid moment node will return always a string.

But i solve with the other idea: get the number of the week frm the date. I set the moment node to return date in WW format, then i change the string into a number looking at this discussion 🙂

> [@String to number](https://discourse.nodered.org/t/string-to-number/988/2):
>
> The Node-RED Function node uses JavaScript. A quick google search for how to do that will reveal lots of answers, for example: Nick

---

_[View the full topic](https://discourse.nodered.org/t/how-to-pass-a-data-type-to-google-sheet/25158)._
