SqlServerDbFunctionsExtensions.SmallDateTimeFromParts Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the DateTime structure to the specified year, month, day, hour and minute.
Corresponds to SQL Server's SMALLDATETIMEFROMPARTS(year, month, day, hour, minute)
.
public static DateTime SmallDateTimeFromParts (this Microsoft.EntityFrameworkCore.DbFunctions _, int year, int month, int day, int hour, int minute);
static member SmallDateTimeFromParts : Microsoft.EntityFrameworkCore.DbFunctions * int * int * int * int * int -> DateTime
<Extension()>
Public Function SmallDateTimeFromParts (_ As DbFunctions, year As Integer, month As Integer, day As Integer, hour As Integer, minute As Integer) As DateTime
Parameters
The DbFunctions instance.
- year
- Int32
The year (1753 through 9999).
- month
- Int32
The month (1 through 12).
- day
- Int32
The day (1 through the number of days in month).
- hour
- Int32
The hours (0 through 23).
- minute
- Int32
The minutes (0 through 59).
Returns
New instance of the DateTime structure to the specified year, month, day, hour and minute.
Remarks
See Database functions, and Accessing SQL Server and Azure SQL databases with EF Core for more information and examples.