IDateTimeNowServiceGetDateTimeNow Method |
Gets the current DateTime.
Namespace: CMS.Core.InternalAssembly: CMS.Core (in CMS.Core.dll) Version: 13.0.131
Syntax DateTime GetDateTimeNow()
Return Value
Type:
DateTimeCurrent
DateTimeRemarks
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