priyadarshikunal wrote:Depends on the definition on 6 months.
No it doesn't. I understand the requirement to be "the date 6 months prior to current date". ...
Apologies for ambiguous statement. The question in my mind at that time was
In case the date is 2011-03(-01) which will produce 2010-08(-30). Definition of 6 months remains constant but there seems to be a deviation from that definition (the result in first post and the result date after substracting 183 day).
Regards,
Priyadarshi Kunal
Genius may have its limitations, but stupidity is not thus handicapped.