title: How to get today's timestamp in GMT format - Kotlin
body: <p>I am using below function to fetch the today's start Timestamp in kotlin- Android.</p>
  <pre><code>fun getTimeStampForStartOfTheDay(): String {
      val localDate = LocalDate.now()   // your current date time
      val startOfDay: LocalDateTime = localDate.atStartOfDay() // date time at start of the date
      val timestamp = startOfDay.atZone(ZoneId.systemDefault()).toInstant()
          .epochSecond // start time to timestamp
      return timestamp.toString()
  }
  </code></pre>
  <p>The TimeStamp am getting is as : <strong>1639593000</strong></p>
  <blockquote>
  <p>GMT: Wednesday, 15 December 2021 18:30:00</p>
  <p>Your time zone: Thursday, 16 December 2021 00:00:00 GMT+05:30</p>
  <p>Relative: 11 hours ago</p>
  </blockquote>
  <p>But timestamp should be <strong>1639612800</strong></p>
  <blockquote>
  <p>GMT: Thursday, 16 December 2021 00:00:00</p>
  <p>Your time zone: Thursday, 16 December 2021 05:30:00 GMT+05:30</p>
  <p>Relative: 5 hours ago</p>
  </blockquote>
  <p>How can I achieve this ? Thanks.</p>