Hey, @Vnk,
I hope you have a data set where the dates will be contained. I am taking an example of "joining data" a heading over a table name "employee_test":
FOR DAYS:
JoiningDay = Day( Table_name(JD))
For Months:
JoiningMonth = Month( Table_name(JD))
For Year
JoiningYear = Year(Table_name(JD))
For Hour
JoiningHour = Hour(Table_name(JD))