prateek_goyal
11 years agoOccasional Contributor
How to get corresponding year
I have a problem regarding how to get the corresponding year.In this we need to verify that Datagrid contains Column <CurrentMonth -1>/<Corresponding Year> so my question is how can we calculate the Corresponding year if CurrentMonth is "January" so if January - 1 = December than corresponding month should be 2013.
DATAGRID: (COLUMN["<Current Month - 1>/<Corresponding Year>"] , COLUMN["<Current Month>/<Corresponding Year>"] , COLUMN["<Current Month + 1>/<Corresponding Year>"] , COLUMN["<Current Month + 2>/<Corresponding Year>"]))
Can anyone please suggest how to calculate the corresponding year of the above step.
DATAGRID: (COLUMN["<Current Month - 1>/<Corresponding Year>"] , COLUMN["<Current Month>/<Corresponding Year>"] , COLUMN["<Current Month + 1>/<Corresponding Year>"] , COLUMN["<Current Month + 2>/<Corresponding Year>"]))
Can anyone please suggest how to calculate the corresponding year of the above step.