Click or drag to resize
IDateTimeNowServiceGetDateTimeNow Method
Gets the current DateTime.

Namespace: CMS.Core.Internal
Assembly: CMS.Core (in CMS.Core.dll) Version: 11.0.0
Syntax
C#
DateTime GetDateTimeNow()

Return Value

Type: DateTime
Current DateTime
Remarks
This method should be used only to improve code testability (allowing to mock the current DateTime). It does not handle time zones and should not be used for any other purposes.
See Also