portableSql

Day Portable SQL Function

Syntax

Day as N (DateTime as D)

Day as N (DateTime as T)

Arguments

DateTimeDate Time

A field or value.

Returns

resultNumeric

Returns the day number from the date or datetime value.

Description

Extract the day of the month from a date or datetime value.

Discussion

The Day function extracts the day of the month from a date or datetime value

Day() function executed on the Northwind Access database
SELECT FIRST 1 CurrentDateTime() AS Now, Day(CurrentDateTime()) AS Expr1 FROM Orders
=10/10/2019 12:48:35 00 pm|10