HTTP Post - Pull the current date

Hello I am new to Pipedream and I am loving it so far.

I am not a developer but have been able to figure out how to use http post to a spreadsheet.
However, I am trying to get the timestamp of when the workflow is executed and I just want to get the Date only - no time. How do I pull this? Date needs to be in PST without time.

Thank you!

you can use luxon library
for example make a request

const { DateTime } = require("luxon");

let date = DateTime.now().toLocaleString()
console.log(date) // should "21/1/2022"

quick demo https://moment.github.io/luxon/demo/global.html

Hi @mrpark welcome to the Pipedream community, happy to have you.

Just wanted to add to @gauloicsdev 's answer.

If your workflow is triggered by a time, you can access the exact time the workflow started with the event variable.

So within your action you can reference it like this within your Google Sheet inputs:

{{ steps.trigger.context.ts }}
1 Like