Hi Team,
I have created two computed colums in myView ( having table custpackingsliptrans table as datasource) month and year.
For month i have written one static method to link my computed colum. in method first i am getting date field
using
str deliverydate;
deliverydate = SyscomputedColum::getReturnField(viewname,datasourcename,fieldname );
return int2str(year(str2date(deliverydate,213))).
but its not giving correct year for each row in a view.
when i just return the same field using return deliverydate; i am getting date like jan 2 201
year is not complete.... not getting the point why same date field i am returning using getreturnfield
why date field "23/2/2011" coverted to Feb 23 201 ( year is not correct, even date format got change ).
*This post is locked for comments