I am using Stripe for processing payment online.
In Stripe when we use any API the date is returned as a Big Integer value.
Here is sample JSON snippet:
"collection_method": "charge_automatically",
"created": 1688385899,
"currency": "usd",
"current_period_end": 1720008299,
"current_period_start": 1688385899,
"customer": "cus_OC9oTx8362sYQa",
"days_until_due": null,
"default_payment_method": "pm_1NPlV0AfDrK8cFljsTuBu1N8",
"default_source": null,
"default_tax_rates": [],
"description": null,
"discount": null,
"ended_at": null,
How to convert this value to a valid Date?
For example created
or current_period_start
or current_period_end