Skip to content

Commit ff266c6

Browse files
jdanyowrwestMSFT
authored andcommitted
Add tip about datetrunc use for start of month equivalent
I was looking for the start of month equivalent for `eomonth` and came across a tip to use `datetrunc` on stackoverflow. Hopefully this will help others looking for the same.
1 parent c1247c3 commit ff266c6

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

docs/t-sql/functions/eomonth-transact-sql.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@ If the *month_to_add* argument has a value, then `EOMONTH` adds the specified nu
4444
**date**
4545

4646
## Remarks
47-
The `EOMONTH` function can remote to [!INCLUDE[ssSQL11](../../includes/sssql11-md.md)] servers and higher. It cannot be remote to servers with a version lower than [!INCLUDE[ssSQL11](../../includes/sssql11-md.md)].
47+
The `EOMONTH` function can remote to [!INCLUDE[ssSQL11](../../includes/sssql11-md.md)] servers and higher. It cannot be remote to servers with a version lower than [!INCLUDE[ssSQL11](../../includes/sssql11-md.md)].
48+
49+
Use `DATETRUNC(MONTH, @date)` to calculate start of month "SOMONTH". See [DATETRUNC](./datetrunc-transact-sql.md).
4850

4951
## Examples
5052

0 commit comments

Comments
 (0)