title: How to know the subscription start date and end date of month in stripe json data?
body: <p>I am trying to retrive the subscription object data using nodejs into my project.
  Below is the subscription object. So whenever user signs up I want to store their subscription date and subscription next date. What I think is its</p>
  <pre><code>&quot;current_period_end&quot;: 1613973928,
  &quot;current_period_start&quot;: 1611295528
  </code></pre>
  <p>But when I converted the time <strong>1613973928</strong> into Localstring it gives :</p>
  <pre><code> &quot;Mon Jan 19 1970 21:49:33 GMT+0530 (India Standard Time)&quot;
  </code></pre>
  <p>This is should be todays date.</p>
  <pre><code>{
        &quot;id&quot;: &quot;sub_Inubyr5OJUppaI&quot;,
        &quot;object&quot;: &quot;subscription&quot;,
        &quot;application_fee_percent&quot;: null,
        &quot;billing_cycle_anchor&quot;: 1611295528,
        &quot;billing_thresholds&quot;: null,
        &quot;cancel_at&quot;: null,
        &quot;cancel_at_period_end&quot;: false,
        &quot;canceled_at&quot;: null,
        &quot;collection_method&quot;: &quot;charge_automatically&quot;,
        &quot;created&quot;: 1611295528,
        &quot;current_period_end&quot;: 1613973928,
        &quot;current_period_start&quot;: 1611295528,
        &quot;customer&quot;: &quot;cus_InubUu9jTKtevF&quot;,
        &quot;days_until_due&quot;: null,
        &quot;default_payment_method&quot;: null,
        &quot;default_source&quot;: null,
        &quot;default_tax_rates&quot;: [],
        &quot;discount&quot;: null,
        &quot;ended_at&quot;: null,
        &quot;items&quot;: {
          &quot;object&quot;: &quot;list&quot;,
          &quot;data&quot;: [
            {
              &quot;id&quot;: &quot;si_InubRpC6JA0U6W&quot;,
              &quot;object&quot;: &quot;subscription_item&quot;,
              &quot;billing_thresholds&quot;: null,
              &quot;created&quot;: 1611295528,
              &quot;metadata&quot;: {},
              &quot;price&quot;: {
                &quot;id&quot;: &quot;price_1Hvs1yGQ1LZjNPNJTN3wuIX0&quot;,
                &quot;object&quot;: &quot;price&quot;,
                &quot;active&quot;: true,
                &quot;billing_scheme&quot;: &quot;per_unit&quot;,
                &quot;created&quot;: 1607379486,
                &quot;currency&quot;: &quot;usd&quot;,
                &quot;livemode&quot;: false,
                &quot;lookup_key&quot;: null,
                &quot;metadata&quot;: {},
                &quot;nickname&quot;: null,
                &quot;product&quot;: &quot;prod_IWvtx3h0tCJQ7c&quot;,
                &quot;recurring&quot;: {
                  &quot;aggregate_usage&quot;: null,
                  &quot;interval&quot;: &quot;month&quot;,
                  &quot;interval_count&quot;: 1,
                  &quot;usage_type&quot;: &quot;licensed&quot;
                },
                &quot;tiers_mode&quot;: null,
                &quot;transform_quantity&quot;: null,
                &quot;type&quot;: &quot;recurring&quot;,
                &quot;unit_amount&quot;: 29900,
                &quot;unit_amount_decimal&quot;: &quot;29900&quot;
              },
              &quot;quantity&quot;: 1,
              &quot;subscription&quot;: &quot;sub_Inubyr5OJUppaI&quot;,
              &quot;tax_rates&quot;: []
            }
          ],
          &quot;has_more&quot;: false,
          &quot;url&quot;: &quot;/v1/subscription_items?subscription=sub_Inubyr5OJUppaI&quot;
        },
        &quot;latest_invoice&quot;: &quot;in_1ICIlwGQ1LZjNPNJZGi0UDF0&quot;,
        &quot;livemode&quot;: false,
        &quot;metadata&quot;: {},
        &quot;next_pending_invoice_item_invoice&quot;: null,
        &quot;pause_collection&quot;: null,
        &quot;pending_invoice_item_interval&quot;: null,
        &quot;pending_setup_intent&quot;: null,
        &quot;pending_update&quot;: null,
        &quot;schedule&quot;: null,
        &quot;start_date&quot;: 1611295528,
        &quot;status&quot;: &quot;active&quot;,
        &quot;transfer_data&quot;: null,
        &quot;trial_end&quot;: null,
        &quot;trial_start&quot;: null
      }
  </code></pre>