How to Declare dialog variable in class using axapta x++



 DialogField DialogFromDate,DialogToDate;  
 // DateTimeUtil fromDate;  
 // DateTimeUtil toDate;  
 FromDate fromDate;  
 ToDate toDate;  
 DateTimeAccepted tmpdate;