Quintiq file version 2.0
#parent: #root
Method PTF_ConvertStringToDateTime (
  String datetimestring
) as DateTime id:Method_LibPTF_pnlTestController_PTF_ConvertStringToDateTime
{
  #keys: '[103546.0.79489740]'
  Body:
  [*
    // Convert a DateTime that was formatted into a String back to DateTime
    convstrtodatetime := StringToDateTime::StandardConverter();
    convstrtodatetime.SetCustomConversion();
    
    convstrtodatetime.CustomFormatString( this.PTF_GetPTFGlobalParameters().DefaultDateFormat() );
    
    return convstrtodatetime.Convert( datetimestring );
  *]
}
