with Breeze 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.
Breeze is a project management tool designed to streamline task planning, collaboration, and tracking for teams. With the Breeze API, you can automate routine project management tasks, sync data with other tools, and create custom notifications to keep your team aligned. By leveraging Pipedream's serverless platform, you can connect Breeze to hundreds of apps, set up complex workflows, and manipulate data in real-time—no server required.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
breeze: {
type: "app",
app: "breeze",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.breeze.pm/me.json`,
params: {
api_token: `${this.breeze.$auth.api_token}`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})