Hide

SftMask/OCX 7.0 - ActiveX Masked Edit Control

Display
Print

FormatTimeV Method, SftMaskCalendar Object

Converts a time into a displayable string.

Syntax

VB.NETobject.FormatTimeV(ByVal Dt As Date, ByRef Text As Object)
VBobject.FormatTimeV(ByVal Dt As Date, Text As Variant)
C#.NETvoid object.FormatTimeV(System.DateTime Dt, ref object Text);
VC++HRESULT object->FormatTimeV(DATE Dt, const _variant_t&* Text);
CHRESULT object->raw_FormatTimeV(DATE Dt, VARIANT* Text);

object

A SftMaskCalendar object.

Dt

The time to be converted to a string. The converted time is returned in the Text argument.

Text

Defines the desired formatting for the specified Time Dt and returns the converted time as a string. If an empty string is specified, the time is formatted using the default user locale.

Comments

The FormatTimeV method converts a time into a displayable string.

The FormatTimeV method uses the Windows GetTimeFormat API to format the specified time Dt.

Text can be defined as an empty string or can consist of one or more of the following items:

TextDescription
hHours without leading zero for single-digit hours - 12-hour clock
hhHours with leading zero for single-digit hours - 12-hour clock
HHours without leading zero for single-digit hours - 24-hour clock
HHHours with leading zero for single-digit hours - 24-hour clock
mMinutes without leading zero for single-digit minutes
mmMinutes with leading zero for single-digit minutes
sSeconds without leading zero for single-digit seconds
ssSeconds with leading zero for single-digit seconds
tOne character time-marker string, such as A or P.
ttFull length, multicharacter time-marker string, such as AM or PM

Literal characters must be enclosed by single quotes.

Text = "hh':'mm':'ss tt"

To specify a literal single quote, use two quotes.

FormatTimeV is used for languages such as VBScript, which are limited by requiring Variant arguments and do not support strongly typed arguments for return values. For more information please see Using SftMask/OCX with Internet Explorer.

See Also SftMaskCalendar Object | Object Hierarchy


Last Updated 08/13/2020 - (email)
© 2024 Softel vdm, Inc.