Help Center

AfxUtcDateStrfunction

Returns the current local date based on the specified mask, e.g. "dd-MM-yyyy".

DateTimefunctionAfxTime.incdocumented

Syntax

FUNCTION AfxUtcDateStr (BYREF wszMask AS WSTRING, BYVAL lcid AS LCID = LOCALE_USER_DEFAULT) AS DWSTRING

Parameters

NameDescription
wszMaskA picture string that is used to form the date.
The format types "d", and "y" must be lowercase and the letter "M" must be uppercase.
For example, to get the date string "Wed, Aug 31 94", the application uses the picture string "ddd',' MMM dd yy".
lcidOptional. The language identifier used for the conversion. Default is LOCALE_USER_DEFAULT.

Return value

The current UTC date in string format.

Description

Returns the current UTC date based on the specified mask, e.g. "dd-MM-yyyy".

The following table defines the format types used to represent days.

The following table defines the format types used to represent months.

The following table defines the format types used to represent years.

Reference

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