Click or drag to resize

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.6.492
Syntax
string FormatTimeShort(
	int timeInMilliSeconds,
	bool dateOnly
)

Parameters

timeInMilliSeconds  Int32
Value of DateTime in milliseconds
dateOnly  Boolean
Specifies whether to include only date information.

Return Value

String
Formatted short string of given time
Exceptions
ExceptionCondition
ArgumentExceptionWhen the integer value provided is negative.
Example

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