with Getform and Formatting?
Get the duration between two dates in days, hours, minutes, and seconds along with checking if they are the same.
Format a date string to another date string. For more examples on formatting, see the Sugar Date Format documentation.
Getform is a powerful API that allows you to collect form submissions without any server-side code, making it an excellent tool for static sites. By using Pipedream, you can automate workflows based on form submissions, such as sending data to databases, triggering email notifications, or integrating with various other services for extended functionality. The API facilitates seamless integration of forms into your development process, while Pipedream acts as the engine to connect and automate actions based on the incoming data.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
getform: {
type: "app",
app: "getform",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.getform.io/v1/forms/[FORM_ID]?token=${this.getform.$auth.api_token}`,
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})