Platform Core .NET Assemblies API
DateTimeToDate Method
See Also  Send Feedback
Terrasoft.Common Namespace > DateTimeUtilities Class : DateTimeToDate Method
value
Base value of date and time.
dayOffset
Days offset. The dayOffset parameter can be positive or negative.
useSpecifiedKind
Use true if method should return date as DateTimeKind.Utc.

Glossary Item Box

Returns new instance of class System.DateTime, which equals received instance System.DateTime with additional days.

Syntax

 
C#
 
 

Parameters

value
Base value of date and time.
dayOffset
Days offset. The dayOffset parameter can be positive or negative.
useSpecifiedKind
Use true if method should return date as DateTimeKind.Utc.

Return Value

Instance of System.DateTime, which value is equal to the sum of the date and time, provided from parameters value, and the number of days, provided from the dayOffset parameter.

Remarks

Instance of System.DateTime contains only Date component of date.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© Terrasoft 2002-2018.