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

Description

Gets the short form string representation of time portion.

Syntax

datetimeInstance.ShortTime

Arguments

None

Return value

ClassDescription
stringThe short form string representation of time portion.

Sample code

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

string shortTime = dt.ShortTime;//in my environment. "4:13"

Notes

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

Links for reference

Copyright © Rice All rights reserved.