Simplicty and flexibility!


Function::DateTime

WeekDay


Parameters


Returns/Result


Examples


Reference

weekday

Type

Date Function

Purpose

The weekday function converts a date value to an integer that corresponds to the day of the week from 1 (Monday) to 7 (Sunday).

Syntax

weekday( DATE VALUE)

Returns

An integer value from 1 to 7.

Examples

weekday( 12/31/99)

Returns: 5

 

spellweekday ( weekday( 12/31/99) )

Returns: Friday

 

weekday( DATE)

Converts the value in the DATE field into an integer from 1 to 7 for every record processed. If a record contains the value 10/31/00 (a Sunday), the function returns 7.

See Also


On the forum about WeekDay

On the blog about WeekDay

How to: Create your own SpeelWeekday() and yes/no for language support

Download Sample The main problem with using an English version of DataEase is things like Spell functions and yes/no. These are functions that a lot of users have grown fo...

Product: Dataease [{8}]FIVE. Written by DataEase 30/09/14 at 22:25:27


dg3_HelpView