Home Cooker Classes Others Rice CookerGX
Classes  >  datetime  >  LongDate
datetime class : LongDate getter

Description

Gets the long form string representation of date portion.

Syntax

datetimeInstance.LongDate

Arguments

None

Return value

ClassDescription
stringThe long form string representation of date portion.

Sample code

datetime dt = new datetime(2016, 3, 4, 4, 13, 0);

string longDate = dt.LongDate;//in my environment. "2016年3月4日"

Notes

It's a wrapper of the System.DateTime.ToLongDateString().

Links for reference

Copyright © Rice All rights reserved.