Complete Sun and Moon Data for One Day
Astronomical Applications Dept. Astronomical Applications Dept.
Skip navigation

Use these forms to obtain rise, set, and transit times for the Sun and Moon; civil twilight beginning and end times; and, lunar phase information for any year between 1700 and 2100. First, specify the date and location in one of the two forms below. Then, click the "Get data" button at the end of the form.

Use Form A for cities or towns in the U.S. or its territories. Use Form B for all other locations. Both forms are immediately below.

Be sure to read the Notes section located after the two forms, especially if you wish to use these data for legal purposes.

Form A - U.S. Cities or Towns




The place name you enter above must be a city or town in the U.S. The place's location will be retrieved from a file with over 22,000 places listed. Either upper- or lower-case letters or a combination can be used. Spell out place name prefixes, as in "East Orange", "Fort Lauderdale", "Mount Vernon", etc. The only exception is "St.", which is entered as an abbreviation with a period, as in "St. Louis". You need only enter as many characters as will unambiguously identify the place. The city or town name may be left blank if the State or Territory is District of Columbia.

Form B - Locations Worldwide



The place name you enter above is merely a label for the table header; you can enter any identifier, or none (avoid using punctuation characters). The data will be calculated for the longitude and latitude you enter below.

Note: Coordinate components should be entered as integers (no decimals).

Time Zone:    

Need coordinates?  Try NGA's GEOnet Names Server (GNS).
Need U.S. coordinates?  Try the USGS Geographic Names Information System (GNIS).
Need a time zone?  Try the time zone map.



Legal Use of the Calculated Data

Please see Astronomical Data Used for Litigation if you are interested in using the data produced by this service for legal purposes.


For more information on the terms used, see the Astronomical Almanac On-line Glossary, Rise, Set, Transit, and Twilight Definitions, or Phases of the Moon and Percent of the Moon Illuminated in the Astronomical Information Center.

Computing Data for Multiple Days

If you need rise, set, or twilight times for a series of dates for a specific location, use our Sun or Moon Rise/Set Table for One Year service, which computes a one-page table covering a calendar year.

Lunar Information

The moon phase and fraction illuminated provided are computed for noon on the date requested, in the time zone requested.

Time Formats

For U.S. cities or towns (Form A), the output times will be on a 12-hour clock (with "a.m." or "p.m." listed). For worldwide locations (Form B), the output times will be on a 24-hour clock.

Time Zones

For U.S. locations (Form A), phenomena times are presented in the standard time or daylight time (see below) of the place requested, using the current time zone of that place. Standardized time zones were introduced in the U.S. in 1883, but the time zone boundaries have evolved considerably since then, with places shifting from one zone to another. This service makes no attempt to track such changes.

For worldwide locations (Form B) that require it, the time zone can be entered in hours and a fraction. For example, for locations in India, the time zone may be entered as 5.5 hours east of Greenwich. The time zone field can accommodate up to five characters.

Daylight Time

In accordance with the Uniform Time Act of 1966 and subsequent legislation, daylight time (DST) is implemented only for U.S. locations (Form A) from 1967 to the present day. Daylight time is not used for places currently exempt from it.

Application Programming Interface

This data service uses one of our new Application Programming Interfaces (APIs). The API returns data in JavaScript Object Notation (JSON) format for users who wish to manipulate data into a customized format. For more information on the API, please see the documentation page.

Sunset photo by Lu Rarogiewicz from Mt. Wilson, California.

Back to . . .     top     Form A     Form B