Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3273

Re: UDF required to get number of years and months

$
0
0

Hi Nitin,

 

  Thank you for your response.

 

  I am getting number of days with your UDF.

  For Ex: I have taken start date as 2012-12-25 and subtracted to current date and got output 1066 

  days.

 

  But for 1066 days i need output as 2 yrs 11 mnths. I don't need in days.

 

  Suppose if it is 270 days then i need output as 0 yrs 9 mnths

 

  Suppose if it is 365 days then i need output as 1 yrs 0 mnths

 

  Few output formats:

 

   3 yrs 2 mnths

   2 yrs 0 mnths

   0 yrs 5 mnths

 

  Could you please help me with this.

 

 

  Thanks,

Bhaskar


Viewing all articles
Browse latest Browse all 3273

Trending Articles