Date Conversion?
Posted: Thu May 15, 2014 12:45 am
Hi All,
I have one requirement.
Requirement: Take the current date and check the date if day is >20 then take the month as current month Else take the previous month with day as 01 always.
Ex: 21-02-2014 .here day is greater then 20 output= 01-02-2014
02-03-2014 here day is less than 20 take the previous month date : 01-02-2014
Could you please help me the above?
I have one requirement.
Requirement: Take the current date and check the date if day is >20 then take the month as current month Else take the previous month with day as 01 always.
Ex: 21-02-2014 .here day is greater then 20 output= 01-02-2014
02-03-2014 here day is less than 20 take the previous month date : 01-02-2014
Could you please help me the above?