• Thank you Gianluca, you code fulfilled my requirement.

    i need to knon one more thing, i replaced monthNumber <= 24 for getting two years data but it didn't work can you help me in getting the same.