wDviP‖Day Function

Contents
8iHxF‖

# wptgJ‖Day Function

BBAea‖Returns a value that represents the day of the month based on a serial date number generated by DateSerial or DateValue.

## tgk7D‖Syntax:

    QQJYU‖Day (Number)

## BpEUZ‖Return value:

SYVzg‖Integer

## 32kHm‖Parameters:

aJv3m‖Number: A numeric expression that contains a serial date number from which you can determine the day of the month.

YbrQA‖This function is basically the opposite of the DateSerial function, returning the day of the month from a serial date number generated by the DateSerial or the DateValue function. For example, the expression

    Print Day (DateSerial(1994, 12, 20))

kmmNy‖returns the value 20.

### SEjHR‖Error codes:

5 Invalid procedure call

## g9Ecp‖Example:

    Sub ExampleDay
    mEk5a‖    Print "Day " & Day(DateSerial(1994, 12, 20)) & " of the month"
    End Sub

Please support us!