Year Functions!

Hello Guys!

I am tryimg to get table's field of year day moth but I have to write like;

for example the date is 01/01/2016 and i have to return  return  2016-quarter 1  in display method to show on form

january february mrah is quarter 1 and  april may june is quarter 2 .....

I have get the date is from table and then I have to return the date's quarter and year.

could you guys help me please?

 

Parents
  • Hi,

    Try Like  this...

    static void SK_date(Args _args)
    {
        int month;
    
    month = mthOfYr(systemDateGet());
        info(strFmt(int2str(month)));
        if(month<=3)
        {
            info(strFmt('Quarter1-%1',year(systemDateGet())));
        }
        else if(month >= 4 && month < 7)
        {
             info(strFmt('Quarter2-%1',year(systemDateGet())));
        }
        
    }

Reply Children
No Data
Related
Recommended