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

Description

Gets the short form string representation of date portion.

Syntax

datetimeInstance.ShortDate

Arguments

None

Return value

ClassDescription
stringThe short form string representation of date portion.

Sample code

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

string shortDate = dt.ShortDate;//in my environment. "2016/03/04"

Notes

System.DateTime.ToLongShortString()のラッパーです。

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

Links for reference

Copyright © Rice All rights reserved.