Get Current date from User control on Enterprise portal web page in Visual studio for MSD axapta

To Get Current date from User control for  Enterprise portal page in Visual studio for axapta you can set below code and show in message box.

 string cDate1 = DateTime.Now.ToString("dd/MM/yyyy");  
 Proxy.Info objinfolog = new Proxy.Info(this.AxSession.AxaptaAdapter);  
  objinfolog.add(cDate1);  

You can include above code in your click event or as per your required event. This code you need to write in visual studio . You need to add particular user control in visual studio project then open code file to write the code.