←Select platform

ChangeTime Method

Summary

Changes the specified System.DateTime object and returns a new System.DateTime.

Syntax
C#
C++/CLI
public static DateTime ChangeTime( 
   DateTime dateTime, 
   int hours, 
   int minutes, 
   int seconds, 
   int milliseconds 
) 
public:  
   static System::DateTime ChangeTime( 
      System::DateTime dateTime, 
      int hours, 
      int minutes, 
      int seconds, 
      int milliseconds 
   ) 

Parameters

dateTime

The input System.DateTime.

hours

The new hours value.

minutes

The new minutes value.

seconds

The new seconds value.

milliseconds

The new milliseconds value.

Return Value

System.DateTime object.

Remarks

This will keep the same date as the input date and use as the time the specified hours, minutes, seconds, and milliseconds.

Requirements

Target Platforms

Help Version 22.0.2022.12.21
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Dicom.Scp Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.