How to convert from date to string type in axapta


 date d = today(); str s;  
 ;  
 s = date2str(d, 2, 2, -1, 2, -1, 2);  
 print "Today's date is " + s;  
 pause;