This document is provided on an "AS IS" basis without warranties of any kind. Smartsite iXperion class libraries may change in future releases.
Sets the day component of the given DateTime.

Namespace: Smartsite.Runtime.Modules
Assembly:  Smartsite.Runtime.Modules (in Smartsite.Runtime.Modules.dll)

Syntax

C#Copy imageCopy Code
[(IsDeterministic = true)]
public static <> SetDay(
	 dt,
	int day
)
Visual Basic (Declaration)Copy imageCopy Code
<(IsDeterministic := True)> _
Public Shared Function SetDay ( _
	dt As , _
	day As Integer _
) As (Of )

Parameters

dt
DateTime
A DateTime.
day
Int32
The day (1 through the number of days in the month).

Return Value

A new DateTime with the same component values as the given DateTime, except for the day component which is set to the given value.

See Also

Advanced