SqlServerDbFunctionsExtensions.DateTrunc 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
오버로드
| 속성 | Description |
|---|---|
| DateTrunc(DbFunctions, String, Nullable<DateTimeOffset>) |
|
| DateTrunc(DbFunctions, String, Nullable<TimeOnly>) |
|
| DateTrunc(DbFunctions, String, Nullable<DateTime>) |
|
| DateTrunc(DbFunctions, String, TimeOnly) |
|
| DateTrunc(DbFunctions, String, DateTimeOffset) |
|
| DateTrunc(DbFunctions, String, DateTime) |
|
| DateTrunc(DbFunctions, String, DateOnly) |
|
| DateTrunc(DbFunctions, String, Nullable<DateOnly>) |
|
DateTrunc(DbFunctions, String, Nullable<DateTimeOffset>)
dateTimeOffset 지정된 datepart 전체 자릿수로 자립니다.
SQL Server DATETRUNC(datepart, date)해당합니다.
public static DateTimeOffset? DateTrunc(this Microsoft.EntityFrameworkCore.DbFunctions _, string datepart, DateTimeOffset? dateTimeOffset);
static member DateTrunc : Microsoft.EntityFrameworkCore.DbFunctions * string * Nullable<DateTimeOffset> -> Nullable<DateTimeOffset>
<Extension()>
Public Function DateTrunc (_ As DbFunctions, datepart As String, dateTimeOffset As Nullable(Of DateTimeOffset)) As Nullable(Of DateTimeOffset)
매개 변수
DbFunctions 인스턴스입니다.
- datepart
- String
잘리는 날짜 파트입니다. 다음 중 하나일 수 있습니다. year,, quartermonth, daydayofyear, week, hourminutesecondiso_weekmillisecond, . microsecond
- dateTimeOffset
- Nullable<DateTimeOffset>
잘리는 값입니다.
반품
잘린 DateTimeOffset 값입니다.
설명
자세한 내용 및 예제는 데이터베이스 함수 및 EF Core를 사용하여 SQL Server 및 Azure SQL 데이터베이스에 액세스하는 것을 참조하세요.
적용 대상
DateTrunc(DbFunctions, String, Nullable<TimeOnly>)
time 지정된 datepart 전체 자릿수로 자립니다.
SQL Server DATETRUNC(datepart, date)해당합니다.
public static TimeOnly? DateTrunc(this Microsoft.EntityFrameworkCore.DbFunctions _, string datepart, TimeOnly? time);
static member DateTrunc : Microsoft.EntityFrameworkCore.DbFunctions * string * Nullable<TimeOnly> -> Nullable<TimeOnly>
<Extension()>
Public Function DateTrunc (_ As DbFunctions, datepart As String, time As Nullable(Of TimeOnly)) As Nullable(Of TimeOnly)
매개 변수
DbFunctions 인스턴스입니다.
- datepart
- String
잘리는 날짜 파트입니다. 다음 중 하나일 수 있습니다. year,, quartermonth, daydayofyear, week, hourminutesecondiso_weekmillisecond, . microsecond
반품
잘린 TimeOnly 값입니다.
설명
자세한 내용 및 예제는 데이터베이스 함수 및 EF Core를 사용하여 SQL Server 및 Azure SQL 데이터베이스에 액세스하는 것을 참조하세요.
적용 대상
DateTrunc(DbFunctions, String, Nullable<DateTime>)
date 지정된 datepart 전체 자릿수로 자립니다.
SQL Server DATETRUNC(datepart, date)해당합니다.
public static DateTime? DateTrunc(this Microsoft.EntityFrameworkCore.DbFunctions _, string datepart, DateTime? date);
static member DateTrunc : Microsoft.EntityFrameworkCore.DbFunctions * string * Nullable<DateTime> -> Nullable<DateTime>
<Extension()>
Public Function DateTrunc (_ As DbFunctions, datepart As String, date As Nullable(Of DateTime)) As Nullable(Of DateTime)
매개 변수
DbFunctions 인스턴스입니다.
- datepart
- String
잘리는 날짜 파트입니다. 다음 중 하나일 수 있습니다. year,, quartermonth, daydayofyear, week, hourminutesecondiso_weekmillisecond, . microsecond
반품
잘린 DateTime 값입니다.
설명
자세한 내용 및 예제는 데이터베이스 함수 및 EF Core를 사용하여 SQL Server 및 Azure SQL 데이터베이스에 액세스하는 것을 참조하세요.
적용 대상
DateTrunc(DbFunctions, String, TimeOnly)
time 지정된 datepart 전체 자릿수로 자립니다.
SQL Server DATETRUNC(datepart, date)해당합니다.
public static TimeOnly DateTrunc(this Microsoft.EntityFrameworkCore.DbFunctions _, string datepart, TimeOnly time);
static member DateTrunc : Microsoft.EntityFrameworkCore.DbFunctions * string * TimeOnly -> TimeOnly
<Extension()>
Public Function DateTrunc (_ As DbFunctions, datepart As String, time As TimeOnly) As TimeOnly
매개 변수
DbFunctions 인스턴스입니다.
- datepart
- String
잘리는 날짜 파트입니다. 다음 중 하나일 수 있습니다. year,, quartermonth, daydayofyear, week, hourminutesecondiso_weekmillisecond, . microsecond
- time
- TimeOnly
잘리는 값입니다.
반품
잘린 TimeOnly 값입니다.
설명
자세한 내용 및 예제는 데이터베이스 함수 및 EF Core를 사용하여 SQL Server 및 Azure SQL 데이터베이스에 액세스하는 것을 참조하세요.
적용 대상
DateTrunc(DbFunctions, String, DateTimeOffset)
dateTimeOffset 지정된 datepart 전체 자릿수로 자립니다.
SQL Server DATETRUNC(datepart, date)해당합니다.
public static DateTimeOffset DateTrunc(this Microsoft.EntityFrameworkCore.DbFunctions _, string datepart, DateTimeOffset dateTimeOffset);
static member DateTrunc : Microsoft.EntityFrameworkCore.DbFunctions * string * DateTimeOffset -> DateTimeOffset
<Extension()>
Public Function DateTrunc (_ As DbFunctions, datepart As String, dateTimeOffset As DateTimeOffset) As DateTimeOffset
매개 변수
DbFunctions 인스턴스입니다.
- datepart
- String
잘리는 날짜 파트입니다. 다음 중 하나일 수 있습니다. year,, quartermonth, daydayofyear, week, hourminutesecondiso_weekmillisecond, . microsecond
- dateTimeOffset
- DateTimeOffset
잘리는 값입니다.
반품
잘린 DateTimeOffset 값입니다.
설명
자세한 내용 및 예제는 데이터베이스 함수 및 EF Core를 사용하여 SQL Server 및 Azure SQL 데이터베이스에 액세스하는 것을 참조하세요.
적용 대상
DateTrunc(DbFunctions, String, DateTime)
date 지정된 datepart 전체 자릿수로 자립니다.
SQL Server DATETRUNC(datepart, date)해당합니다.
public static DateTime DateTrunc(this Microsoft.EntityFrameworkCore.DbFunctions _, string datepart, DateTime date);
static member DateTrunc : Microsoft.EntityFrameworkCore.DbFunctions * string * DateTime -> DateTime
<Extension()>
Public Function DateTrunc (_ As DbFunctions, datepart As String, date As DateTime) As DateTime
매개 변수
DbFunctions 인스턴스입니다.
- datepart
- String
잘리는 날짜 파트입니다. 다음 중 하나일 수 있습니다. year,, quartermonth, daydayofyear, week, hourminutesecondiso_weekmillisecond, . microsecond
- date
- DateTime
잘리는 값입니다.
반품
잘린 DateTime 값입니다.
설명
자세한 내용 및 예제는 데이터베이스 함수 및 EF Core를 사용하여 SQL Server 및 Azure SQL 데이터베이스에 액세스하는 것을 참조하세요.
적용 대상
DateTrunc(DbFunctions, String, DateOnly)
date 지정된 datepart 전체 자릿수로 자립니다.
SQL Server DATETRUNC(datepart, date)해당합니다.
public static DateOnly DateTrunc(this Microsoft.EntityFrameworkCore.DbFunctions _, string datepart, DateOnly date);
static member DateTrunc : Microsoft.EntityFrameworkCore.DbFunctions * string * DateOnly -> DateOnly
<Extension()>
Public Function DateTrunc (_ As DbFunctions, datepart As String, date As DateOnly) As DateOnly
매개 변수
DbFunctions 인스턴스입니다.
- datepart
- String
잘리는 날짜 파트입니다. 다음 중 하나일 수 있습니다. year,, quartermonth, daydayofyear, week, hourminutesecondiso_weekmillisecond, . microsecond
- date
- DateOnly
잘리는 값입니다.
반품
잘린 DateOnly 값입니다.
설명
자세한 내용 및 예제는 데이터베이스 함수 및 EF Core를 사용하여 SQL Server 및 Azure SQL 데이터베이스에 액세스하는 것을 참조하세요.
적용 대상
DateTrunc(DbFunctions, String, Nullable<DateOnly>)
date 지정된 datepart 전체 자릿수로 자립니다.
SQL Server DATETRUNC(datepart, date)해당합니다.
public static DateOnly? DateTrunc(this Microsoft.EntityFrameworkCore.DbFunctions _, string datepart, DateOnly? date);
static member DateTrunc : Microsoft.EntityFrameworkCore.DbFunctions * string * Nullable<DateOnly> -> Nullable<DateOnly>
<Extension()>
Public Function DateTrunc (_ As DbFunctions, datepart As String, date As Nullable(Of DateOnly)) As Nullable(Of DateOnly)
매개 변수
DbFunctions 인스턴스입니다.
- datepart
- String
잘리는 날짜 파트입니다. 다음 중 하나일 수 있습니다. year,, quartermonth, daydayofyear, week, hourminutesecondiso_weekmillisecond, . microsecond
반품
잘린 DateOnly 값입니다.
설명
자세한 내용 및 예제는 데이터베이스 함수 및 EF Core를 사용하여 SQL Server 및 Azure SQL 데이터베이스에 액세스하는 것을 참조하세요.