Click or drag to resize

DtToS Function

X#
Convert a DateTime value to a string formatted as string in ANSI format

Namespace:  XSharp.Core
Assembly:  XSharp.Core (in XSharp.Core.dll) Version: 2.19
Syntax
 FUNCTION DtToS(
	dDate AS DateTime
) AS STRING
Request Example View Source

Parameters

dDate
Type: DateTime
The DateTime to be converted

Return Value

Type: String
An 8-character string in the format yyyymmdd. If dDate is a DateTime.MinValue, a string of eight spaces is returned. The return value is not affected by the current date format.
See Also