• Thanks,

    But the thing is it works for only current year and the input date can be last year date.

    for example input date '2010-07-06'(6th July 2010) then output should be 30.06.2010.