Help Center

AfxVariantDateTimeToStrfunction

Converts a DATE_ type to a string.

DateTimefunctionAfxTime.incdocumented

Syntax

FUNCTION AfxVariantDateTimeToStr (BYVAL vbDate AS DATE_, BYVAL lcid AS LCID = LOCALE_USER_DEFAULT, BYVAL dwFlags AS DWORD = 0) AS DWSTRING

Parameters

NameDescription
vbDateA variant representation of time.
lcidOptional. The language identifier used for the conversion. Default is LOCALE_USER_DEFAULT.
dwFlagsOptional. A value made from one or more flags. The following table shows the flags that can be set for this parameter.

Return value

The formatted date and time.

Description

Converts a DATE_ type to a string.

Reference

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