toString

Summary

Returns a string representation of the current date/time value held by the System.Date object. The string representation is guaranteed to be in the following format: Thu Jul 01 2017 00:00:00 UTC-0700.

Usage

public override string toString()

Returns

A string representation of the System.Date object.

Description

Returns a string representation of the current date/time value held by the System.Date object.

The string representation is guaranteed to be in the following format:

Thu Jul 01 2017 00:00:00 UTC-0700

Examples

Basic Usage
1
2
3
4
import System;
 
Date d = new Date();
Console.log(d.toString());

Share

HTML | BBCode | Direct Link