My query is , there are two inputs date 1 and date 2, now i am calculating datedifference between those two inputs and based on the output, bot need to decide whether its a day or week or month. Help me to get the output in step3!!!
Step1: getting input date 1 and date 2
Step2: Var_out = calculating datediff date 1 and date 2
Step 3: If Var_out is
1 or 3 which need to return output as “day”;
6 which need to return output as “week”;
29 or 30 which need to return output as “month”