DateTime  DayName

Chapter 2: DataWindow Expression Functions

Day

Description

Obtains the day of the month in a date value.

Syntax

Day ( date )

Argument

Description

date

The date for which you want the day

Returns

Integer. Returns an integer (1–31) representing the day of the month in date.

Examples

Example 1

This expression returns 31:

Day(1999-01-31)

Example 2

This expression returns the day of the month in the start_date column:

Day(start_date)

See also





Copyright © 2004. Sybase Inc. All rights reserved. DayName

View this book as PDF