Help Center

AfxVariantDateToStrfunction

Converts a DATE_ type to a string containing only the date.

DateTimefunctionAfxTime.incdocumented

Syntax

FUNCTION AfxVariantDateToStr (BYVAL vbDate AS DATE_, BYVAL lcid AS LCID = LOCALE_USER_DEFAULT) AS DWSTRING

Parameters

NameDescription
vbDateA variant representation of time.
lcidOptional. The language identifier used for the conversion. Default is LOCALE_USER_DEFAULT.

Return value

The formatted date.

Description

Converts a DATE_ type to a string containing only the date

Reference

  • Include file AfxTime.inc
  • Defined in AfxNova/AfxTime.inc:1015
  • Documented in DateTime/DateTime Procedures.md
  • Topic: Date and Time Procedures