If you want specifically to use the Boolean Function, Another option is that you could make a null object called "Day_Night_Toggle" and assign it a Boolean instance Variable that you call when you want in the Event sheet..or just assign the Variable to an existing object in the layer you want to toggle
Null objects are common usage in Games Design.
Null object can be a small invisible or Transparent Sprite created the usual way and has the added benefits of being an entity that you can easily access with other function calls..or implement other EFFECTS to like WEBGL
Often I find Simple Color Overlays are good for Day/Night Transitions..
and also allow lighting FX
<img src="smileys/smiley1.gif" border="0" align="middle" />