Quintiq file version 2.0
#parent: #root
Method PTF_ConvertDateTimeToString (
  DateTime dateTime
) as String id:Method_LibPTF_pnlTestController_PTF_ConvertDateTimeToString
{
  #keys: '[131464.1.877352789]'
  Body:
  [*
    // convert date time to string (based on client timezone)
    converter := DateTimeToString::UserConverter();
    converter.SetCustomConversion();                                          
    
    defaultDateFormat := this.PTF_GetPTFGlobalParameters().DefaultDateFormat()
    converter.CustomFormatString( defaultDateFormat );
    
    stringValue := converter.Convert( dateTime );
    
    return stringValue;
  *]
}
