Hi,
Can someone help me here.
Table- dbo.Account
Field Name- FiscalEndDate
Datatype- Varchar (20)
sample value-
FiscalEndDate
8/30
6/5
10/20
Logic- check the 'mm' and 'dd' in the text field "FiscalEndDate" with current system date and
a) if month of system day and month are less than the day and month of FiscalEndDate then add previous year to mm/yy and convert the format as mm/dd/yyyy.
b) if month of system day and month are less than the day and month of FiscalEndDate then add current year to mm/yy and convert the format as mm/dd/yyyy.
c) if both are same then add 2014
Sample Output-
08/30/2013
06/05/2013
10/20/2014
Please someone help me here.
Can someone help me here.
Table- dbo.Account
Field Name- FiscalEndDate
Datatype- Varchar (20)
sample value-
FiscalEndDate
8/30
6/5
10/20
Logic- check the 'mm' and 'dd' in the text field "FiscalEndDate" with current system date and
a) if month of system day and month are less than the day and month of FiscalEndDate then add previous year to mm/yy and convert the format as mm/dd/yyyy.
b) if month of system day and month are less than the day and month of FiscalEndDate then add current year to mm/yy and convert the format as mm/dd/yyyy.
c) if both are same then add 2014
Sample Output-
08/30/2013
06/05/2013
10/20/2014
Please someone help me here.