#JKL-timestamp
1 messages · Page 1 of 1 (latest)
Hi Alex, something like the following:
`stripe.invoices.retrieveUpcoming({customer: body.stripeCustomerID})
.then((response) => {
console.log(new Date(response.next_payment_date));
console.log(new Date(response.period_end));
console.log(new Date(response.lines.data[0].period.end));
})`
the Date takes in milliseconds, but Stripe returns an unix timestamp which is in seconds
you're welcome 😄