I have a date. I want to check whether the date lies between JAN to JUNE or JULY to DECEMBER. Like suppose if user enter input date 28-NOV-12 then how can i check that this date lies between JULY to DECEMBER ? and if user input date 28-FEB-12 then this date lies between JAN to JUNE? Basically i want to check dates on half yearly basis ?
Thanks
Try
to_charfunction, e.g. this way:to_char(date_column, 'mm')returns month (01..12, 01 – January) part of the date.today returns: