←Select platform

ChangeTime Method

Summary

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

Syntax
C#
VB
C++
public static DateTime ChangeTime( 
   DateTime dateTime, 
   int hours, 
   int minutes, 
   int seconds, 
   int milliseconds 
) 
Public Shared Function ChangeTime( 
   ByVal dateTime As Date, 
   ByVal hours As Integer, 
   ByVal minutes As Integer, 
   ByVal seconds As Integer, 
   ByVal milliseconds As Integer 
) As Date 
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 21.0.2021.6.30
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

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