# Timestamp to SQL Server in Node Red

**URL:** <https://discourse.nodered.org/t/timestamp-to-sql-server-in-node-red/81813>\
**Category:** Dashboard\
**Tags:** database\
**Created:** [6 October 2023 02:09 UTC](https://discourse.nodered.org/t/timestamp-to-sql-server-in-node-red/81813 "2023-10-06T02:09:10Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [6 October 2023 05:47 UTC](https://discourse.nodered.org/t/timestamp-to-sql-server-in-node-red/81813/3 "2023-10-06T05:47:38Z")

</div>

Getting the correct format for transmitting a timestamp to SQL server from JavaScript can be tricky.

The least difficult (and safest) way is to use parameters and specify the correct type.

This is all done graphically in the editor if you are using [node-red- contrib-mssql-plus](https://flows.nodered.org/node/node-red-contrib-mssql-plus)

Here is an example of what I mean: [Can't upload some values to MSSQL - #15 by Steve-Mcl](https://discourse.nodered.org/t/cant-upload-some-values-to-mssql/53931/15)

---

_[View the full topic](https://discourse.nodered.org/t/timestamp-to-sql-server-in-node-red/81813)._
