and expanding on what <@U29PVMVAR> stated, use get...
# suitescript
g
and expanding on what @erictgrubaugh stated, use getHour() and getDay() with the Date object to get the additional info you need