How to turn day into night

For this you're going to need an image with a strong light source:
       1. Dublicate the original image and then invert the second one (Image > Adjustments > Invert or Ctrl + i).

example


       2. Set the Layer Blending Mode to Hue.

example



       3. Adjust the levels and color balance of the base photo.
       Congrats, you've turned sunlight into moonlight in just three steps.
       Also, keep in mind that this technique works best when the image doesn't contain a wide range of colors.

example