if (Date("G") > 06 && Date("G") <= 19){ //Condicion de día }
if (Date("G") > 19 && Date("G") <= 06){{ //Condicion de noche }