次の方法で共有


CDOW( ) Function

Returns the day of the week from a given Date or DateTime expression.

CDOW(dExpression | tExpression)

Parameters

  • dExpression
    Specifies the date from which CDOW( ) returns the day.

  • tExpression
    Specifies the datetime from which CDOW( ) returns the day.

Return Value

Character

Remarks

CDOW( ) returns the name of the day of the week as a string in proper noun format.

Example

STORE {^1998-02-16} TO gdDate 
CLEAR
? CDOW(gdDate)  && Displays Monday

See Also

Reference

DAY( ) Function

DOW( ) Function

SET FDOW Command

SET FWEEK Command

SYS( ) Functions Overview

DATETIME( ) Function

Other Resources

Functions

Language Reference (Visual FoxPro)