Contido
Índice 🔎︎

# Función Day

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

## Sintaxe:

    Day (Número)

## Valor de retorno:

Enteiro

## Parámetros:

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

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))

devolve o valor 20.

### Códigos de erro

5 Chamada de procedemento incorrecta

## Exemplo:

    Sub ExampleDay
        Print "Día " & Day(DateSerial(1994, 12, 20)) & " do mes"
    End Sub