I have a given date at any time in future or past eg: 2016-04-23 or 2022-05-12 Now given at any location(lat,lng). How do i find the time of sunrise or sunset.


1 Answer 1


Assuming you mean this in practical sense:

Just use one of the numerous free websites that give this data:

Eg. https://keisan.casio.com/exec/system/1224686065

website screenshot

Assuming you want to know about the math:

Check out the sunrise equation

  • $\begingroup$ I am not asking what's available on the internet. $\endgroup$ May 31, 2020 at 3:00
  • 1
    $\begingroup$ @SureshChaudhari Are you saying the sunrise equation isn't what you're looking for? Pretty much every method for computing sunrise/sunset is on the Internet, including the methods used by NASA. $\endgroup$
    – user21
    Jun 1, 2020 at 16:07
  • $\begingroup$ But that site limits the range of dates. $\endgroup$
    – Bob
    Sep 28, 2022 at 19:22

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .