This script can provide Day, DayofWeek, Hour, Minute, Month, Quarter, Second, WeekInMonth and Year which you can use.
This script would run both in system user and logged in user.
---
Comments