ILocaleFormatTimeShort Method
|
Converts a time value to its equivalent
string representation using culture-specific short format
information.
Namespace: Ingeniux.CMSAssembly: Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 10.6.492
Syntaxstring 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 Int32
- Value of DateTime in milliseconds
- dateOnly Boolean
- Specifies whether to include only date information.
Return Value
StringFormatted short string of given time
Exceptions
ExampleMilliseconds: 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