The function Day in VBA returns the day number (from 1 to 31) for the given date value.

Syntax

Parameter

Date (required) – This parameter represents the date.

Return

This function returns the day number (from 1 to 31) for the given date value.

Example 1

Output

2

VBA Day Function

Example 2

Output

8

VBA Day Function

Pin It on Pinterest

Share This