Convert string to time in MSD axapta

Convert string to time in axapta

 str timeStr;  
  timeofday time;  
  ;  
  timeStr = "12:13";  
  time = str2Time(timeStr);