ILocaleFormatTimeShort Method
|
Converts a time value to its equivalent
string representation using culture-specific short format
information.
Namespace:
Ingeniux.CMS
Assembly:
Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 10.3.169
Syntax string FormatTimeShort(
int timeInMilliSeconds,
bool dateOnly
)
Function FormatTimeShort (
timeInMilliSeconds As Integer,
dateOnly As Boolean
) As String
String^ FormatTimeShort(
int timeInMilliSeconds,
bool dateOnly
)
abstract FormatTimeShort :
timeInMilliSeconds : int *
dateOnly : bool -> string
Parameters
- timeInMilliSeconds
- Type: SystemInt32
Value of DateTime in milliseconds - dateOnly
- Type: SystemBoolean
Specifies whether to include only date information.
Return Value
Type:
StringFormatted short string of given time
Examples Milliseconds: 63512604603336
en-us: 8/20/2013 2:10 PM
en-us date only: 8/20/2013
fr-ca: 2013-08-20 14:10
fr-ca date only: 2013-08-20
See Also