Here is a script to calculate and show the phases of the moon. Just enter a date and time (between year 1900 and 2100).
Set Date and Time
Default is current date and time.
If you want to know how this script works, see: Calculating moon phase for a date.