Search
DateFormats.shortTime Property
See Also
Collapse All Expand All Language Filter: All Language Filter: Multiple Language Filter: None Language Filter: C# Language Filter: Visual Basic Language Filter: Java Language Filter: JavaScript Language Filter: C++ Language Filter: XAML
C#
Visual Basic
Java
JavaScript
C++
XAML
Introduction
General Information
What's New In This Release
Version History
Getting Started
Code Completion With VSDoc IntelliSense
Programming Interface Overview
Tutorials
Reference
MindFusion.Common
Control Class
DateFormats Class
DateFormats Members
DateFormats Constructor
DateFormats Properties
dayMonth Property
longDate Property
longDateTime Property
longTime Property
shortDate Property
shortDateTime Property
shortTime Property
yearMonth Property
DateSettings Class
EventDispatcher Class
IdGenerator Class
Locale Class
NotifyCollectionChangedAction Class
NotifyCollectionChangedEventArgs Class
NotifyCollectionChangingEventArgs Class
PropertyEventArgs Class
UIControl Class
Unit Class
UnitType Enumeration
MindFusion.Common.Collections
MindFusion.Controls
MindFusion.Scheduling
Licensing
Online Resources
Technical Support
MindFusion Products

Gets or sets the short time format string.

Namespace: MindFusion.Common
Assembly: Locale.js

## Syntax

JavaScript Copy Code
get shortTime() {} set shortTime(value) {}

### Property Value

String

The short time format string.

## Example

The following code creates a new Locale instance that uses the DateFormats property to initialize the desired date and time formats.

JavaScript Copy Code
var locale = new Locale("us-2"); locale.dateSettings.dateFormats.shortDate = "MM/d/yyyy"; locale.dateSettings.dateFormats.shortTime = "h:mm tt"; locale.dateSettings.dateFormats.shortDateTime = "MM/d/yyyy h:mm tt"; locale.dateSettings.dateFormats.longDate = "dddd, MMMM dd, yyyy"; locale.dateSettings.dateFormats.longTime = "h:mm:ss tt"; locale.dateSettings.dateFormats.longDateTime = "dddd, MMMM dd, yyyy h:mm:ss tt"; locale.dateSettings.dateFormats.dayMonth = "d/MM"; locale.dateSettings.dateFormats.yearMonth = "MMMM, yyyy"; locale.dateSettings.generate(); calendar.locale = locale;

## See Also

DateFormats Members
DateFormats Class
MindFusion.Common Namespace