DTOC() Method



|Visual FoxPro Toolkit for .NET | |

DTOC() Method

Receives a Date as a parameter and returns a string of that date. (Use MyDate.ToShortDateString() instead)

[pic]

This method maps directly to existing functionality in the .NET. Use the code listed in the Implementation section of the help detail instead.

[Visual Basic]

Public Shared Function DTOC(ByVal dDate As System.DateTime) As String

[C#]

public static string DTOC(System.DateTime dDate)

Example

[Visual Basic]

Console.WriteLine(DTOC(DateTime.Now))

Implementation

[Visual Basic]

Public Shared Function DTOC(ByVal dDate As System.DateTime) As String

Return dDate.ToShortDateString()

End Function

[C#]

public static string DTOC(System.DateTime dDate)

{

return dDate.ToShortDateString();

}

Requirements

Namespace: VFPToolkit

Class: VFPToolkit.dates

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows .NET Server family

Assembly: VFPToolkit (in VFPToolkitNET.dll)

See Also

VFPToolkit.dates Members | VFPToolkit Namespace

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download