November Happy Hour will be moved to Thursday December 5th.

Class DatabaseDateTimeHandlerExtensions

Helper class for converting Datetime to/from database

Inheritance
System.Object
DatabaseDateTimeHandlerExtensions
Namespace: EPiServer.Data
Assembly: EPiServer.Data.dll
Version: 12.0.3
Syntax
public static class DatabaseDateTimeHandlerExtensions : Object

Methods

ConvertToDatabase(DatabaseDateTimeHandler, Nullable<DateTime>)

Convert a nullable datetime, if the value is null then returns null otherwise convert the value for storing in database.

Declaration
public static Nullable<DateTime> ConvertToDatabase(this DatabaseDateTimeHandler dateTimeHandler, Nullable<DateTime> value)
Parameters
Type Name Description
DatabaseDateTimeHandler dateTimeHandler

The datetime handler

System.Nullable<System.DateTime> value

The value

Returns
Type Description
System.Nullable<System.DateTime>

null if the value is null otherwise converted datetime