<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc -->
<title>DateTimeFormat (GWT Javadoc)</title>
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
    try {
        if (location.href.indexOf('is-external=true') == -1) {
            parent.document.title="DateTimeFormat (GWT Javadoc)";
        }
    }
    catch(err) {
    }
//-->
var methods = {"i0":9,"i1":9,"i2":9,"i3":41,"i4":41,"i5":41,"i6":41,"i7":41,"i8":41,"i9":41,"i10":41,"i11":41,"i12":41,"i13":41,"i14":41};
var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],8:["t4","Concrete Methods"],32:["t6","Deprecated Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!--   -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
<!--   -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/DateTimeFormat.html">Use</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
<div class="aboutLanguage">GWT 2.9.0</div>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../com/google/gwt/i18n/client/DateTimeConstantsAdapter.html" title="class in com.google.gwt.i18n.client"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.PredefinedFormat.html" title="enum in com.google.gwt.i18n.client"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?com/google/gwt/i18n/client/DateTimeFormat.html" target="_top">Frames</a></li>
<li><a href="DateTimeFormat.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_top");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li><a href="#nested.class.summary">Nested</a>&nbsp;|&nbsp;</li>
<li><a href="#fields.inherited.from.class.com.google.gwt.i18n.shared.DateTimeFormat">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.top">
<!--   -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">com.google.gwt.i18n.client</div>
<h2 title="Class DateTimeFormat" class="title">Class DateTimeFormat</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object</li>
<li>
<ul class="inheritance">
<li><a href="../../../../../com/google/gwt/i18n/shared/DateTimeFormat.html" title="class in com.google.gwt.i18n.shared">com.google.gwt.i18n.shared.DateTimeFormat</a></li>
<li>
<ul class="inheritance">
<li>com.google.gwt.i18n.client.DateTimeFormat</li>
</ul>
</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<hr>
<br>
<pre>public class <span class="typeNameLabel">DateTimeFormat</span>
extends <a href="../../../../../com/google/gwt/i18n/shared/DateTimeFormat.html" title="class in com.google.gwt.i18n.shared">DateTimeFormat</a></pre>
<div class="block">Formats and parses dates and times using locale-sensitive patterns.
 
 <h3>Patterns</h3>
 
 <table>
 <tr>
 <th>Symbol</th>
 <th>Meaning</th>
 <th>Presentation</th>
 <th>Example</th>
 </tr>
 
 <tr>
 <td><code>G</code></td>
 <td>era designator</td>
 <td>Text</td>
 <td><code>AD</code></td>
 </tr>
 
 <tr>
 <td><code>y</code></td>
 <td>year</td>
 <td>Number</td>
 <td><code>1996</code></td>
 </tr>
 
 <tr>
 <td><code>L</code></td>
 <td>standalone month in year</td>
 <td>Text or Number</td>
 <td><code>July (or) 07</code></td>
 </tr>
 
 <tr>
 <td><code>M</code></td>
 <td>month in year</td>
 <td>Text or Number</td>
 <td><code>July (or) 07</code></td>
 </tr>
 
 <tr>
 <td><code>d</code></td>
 <td>day in month</td>
 <td>Number</td>
 <td><code>10</code></td>
 </tr>
 
 <tr>
 <td><code>h</code></td>
 <td>hour in am/pm (1-12)</td>
 <td>Number</td>
 <td><code>12</code></td>
 </tr>
 
 <tr>
 <td><code>H</code></td>
 <td>hour in day (0-23)</td>
 <td>Number</td>
 <td><code>0</code></td>
 </tr>
 
 <tr>
 <td><code>m</code></td>
 <td>minute in hour</td>
 <td>Number</td>
 <td><code>30</code></td>
 </tr>
 
 <tr>
 <td><code>s</code></td>
 <td>second in minute</td>
 <td>Number</td>
 <td><code>55</code></td>
 </tr>
 
 <tr>
 <td><code>S</code></td>
 <td>fractional second</td>
 <td>Number</td>
 <td><code>978</code></td>
 </tr>
 
 <tr>
 <td><code>E</code></td>
 <td>day of week</td>
 <td>Text</td>
 <td><code>Tuesday</code></td>
 </tr>
 
 <tr>
 <td><code>c</code></td>
 <td>standalone day of week</td>
 <td>Text</td>
 <td><code>Tuesday</code></td>
 </tr>
 
 <tr>
 <td><code>a</code></td>
 <td>am/pm marker</td>
 <td>Text</td>
 <td><code>PM</code></td>
 </tr>
 
 <tr>
 <td><code>k</code></td>
 <td>hour in day (1-24)</td>
 <td>Number</td>
 <td><code>24</code></td>
 </tr>
 
 <tr>
 <td><code>K</code></td>
 <td>hour in am/pm (0-11)</td>
 <td>Number</td>
 <td><code>0</code></td>
 </tr>
 
 <tr>
 <td><code>z</code></td>
 <td>time zone</td>
 <td>Text</td>
 <td><code>Pacific Standard Time(see comment)</code></td>
 </tr>
 
 <tr>
 <td><code>Z</code></td>
 <td>time zone (RFC 822)</td>
 <td>Text</td>
 <td><code>-0800(See comment)</code></td>
 </tr>
 
 <tr>
 <td><code>v</code></td>
 <td>time zone id</td>
 <td>Text</td>
 <td><code>America/Los_Angeles(See comment)</code></td>
 </tr>
 
 <tr>
 <td><code>'</code></td>
 <td>escape for text</td>
 <td>Delimiter</td>
 <td><code>'Date='</code></td>
 </tr>
 
 <tr>
 <td><code>''</code></td>
 <td>single quote</td>
 <td>Literal</td>
 <td><code>'o''clock'</code></td>
 </tr>
 </table>
 
 <p>
 The number of pattern letters influences the format, as follows:
 </p>
 
 <dl>
 <dt>Text</dt>
 <dd>if 4 or more, then use the full form; if less than 4, use short or
 abbreviated form if it exists (e.g., <code>"EEEE"</code> produces
 <code>"Monday"</code>, <code>"EEE"</code> produces <code>"Mon"</code>)</dd>
 
 <dt>Number</dt>
 <dd>the minimum number of digits. Shorter numbers are zero-padded to this
 amount (e.g. if <code>"m"</code> produces <code>"6"</code>, <code>"mm"</code>
 produces <code>"06"</code>). Year is handled specially; that is, if the count
 of 'y' is 2, the Year will be truncated to 2 digits. (e.g., if
 <code>"yyyy"</code> produces <code>"1997"</code>, <code>"yy"</code> produces
 <code>"97"</code>.) Unlike other fields, fractional seconds are padded on the
 right with zero.</dd>
 
 <dt>Text or Number</dt>
 <dd>3 or more, use text, otherwise use number. (e.g. <code>"M"</code>
 produces <code>"1"</code>, <code>"MM"</code> produces <code>"01"</code>,
 <code>"MMM"</code> produces <code>"Jan"</code>, and <code>"MMMM"</code>
 produces <code>"January"</code>.  Some pattern letters also treat a count
 of 5 specially, meaning a single-letter abbreviation: <code>L</code>,
 <code>M</code>, <code>E</code>, and <code>c</code>.</dd>
 </dl>
 
 <p>
 Any characters in the pattern that are not in the ranges of ['<code>a</code>
 '..'<code>z</code>'] and ['<code>A</code>'..'<code>Z</code>'] will be treated
 as quoted text. For instance, characters like '<code>:</code>', '
 <code>.</code>', '<code> </code>' (space), '<code>#</code>' and '
 <code>@</code>' will appear in the resulting time text even they are not
 embraced within single quotes.
 </p>
 
 <p>
 [Time Zone Handling] Web browsers don't provide all the information we need
 for proper time zone formating -- so GWT has a copy of the required data, for
 your convenience. For simpler cases, one can also use a fallback
 implementation that only keeps track of the current timezone offset. These
 two approaches are called, respectively, Common TimeZones and Simple
 TimeZones, although both are implemented with the same TimeZone class.
 
 "TimeZone createTimeZone(String timezoneData)" returns a Common TimeZone
 object, and "TimeZone createTimeZone(int timeZoneOffsetInMinutes)" returns a
 Simple TimeZone object. The one provided by OS fall into to Simple TimeZone
 category. For formatting purpose, following table shows the behavior of GWT
 DateTimeFormat.
 </p>
 <table>
 <tr>
 <th>Pattern</th>
 <th>Common TimeZone</th>
 <th>Simple TimeZone</th>
 </tr>
 <tr>
 <td>z, zz, zzz</td>
 <td>PDT</td>
 <td>UTC-7</td>
 </tr>
 <tr>
 <td>zzzz</td>
 <td>Pacific Daylight Time</td>
 <td>UTC-7</td>
 </tr>
 <tr>
 <td>Z, ZZ</td>
 <td>-0700</td>
 <td>-0700</td>
 </tr>
 <tr>
 <td>ZZZ</td>
 <td>-07:00</td>
 <td>-07:00</td>
 </tr>
 <tr>
 <td>ZZZZ</td>
 <td>GMT-07:00</td>
 <td>GMT-07:00</td>
 </tr>
 <tr>
 <td>v, vv, vvv, vvvv</td>
 <td>America/Los_Angeles</td>
 <td>Etc/GMT+7</td>
 </tr>
 </table>
 
 <h3>Parsing Dates and Times</h3>
 <p>
 The pattern does not need to specify every field.  If the year, month, or
 day is missing from the pattern, the corresponding value will be taken from
 the current date.  If the month is specified but the day is not, the day will
 be constrained to the last day within the specified month.  If the hour,
 minute, or second is missing, the value defaults to zero.
 </p>
 
 <p>
 As with formatting (described above), the count of pattern letters determines
 the parsing behavior.
 </p>
 
 <dl>
 <dt>Text</dt>
 <dd>4 or more pattern letters--use full form, less than 4--use short or
 abbreviated form if one exists. In parsing, we will always try long format,
 then short.</dd>
 
 <dt>Number</dt>
 <dd>the minimum number of digits.</dd>
 
 <dt>Text or Number</dt>
 <dd>3 or more characters means use text, otherwise use number</dd>
 </dl>
 
 <p>
 Although the current pattern specification doesn't not specify behavior for
 all letters, it may in the future. It is strongly discouraged to use
 unspecified letters as literal text without quoting them.
 </p>
 <p>
 [Note on TimeZone] The time zone support for parsing is limited. Only
 standard GMT and RFC format are supported. Time zone specification using time
 zone id (like America/Los_Angeles), time zone names (like PST, Pacific
 Standard Time) are not supported. Normally, it is too much a burden for a
 client application to load all the time zone symbols. And in almost all those
 cases, it is a better choice to do such parsing on server side through
 certain RPC mechanism. This decision is based on particular use cases we have
 studied; in principle, it could be changed in future versions.
 </p>
 
 <h3>Examples</h3>
 <table>
 <tr>
 <th>Pattern</th>
 <th>Formatted Text</th>
 </tr>
 
 <tr>
 <td><code>"yyyy.MM.dd G 'at' HH:mm:ss vvvv"</code></td>
 <td><code>1996.07.10 AD at 15:08:56 America/Los_Angeles</code></td>
 </tr>
 
 <tr>
 <td><code>"EEE, MMM d, ''yy"</code></td>
 <td><code>Wed, July 10, '96</code></td>
 </tr>
 
 <tr>
 <td><code>"h:mm a"</code></td>
 <td><code>12:08 PM</code></td>
 </tr>
 
 <tr>
 <td><code>"hh 'o''clock' a, zzzz"</code></td>
 <td><code> 12 o'clock PM, Pacific Daylight Time</code></td>
 </tr>
 
 <tr>
 <td><code>"K:mm a, vvvv"</code></td>
 <td><code> 0:00 PM, America/Los_Angeles</code></td>
 </tr>
 
 <tr>
 <td><code>"yyyyy.MMMMM.dd GGG hh:mm aaa"</code></td>
 <td><code>01996.July.10 AD 12:08 PM</code></td>
 </tr>
 </table>
 
 <h3>Additional Parsing Considerations</h3>
 <p>
 When parsing a date string using the abbreviated year pattern (
 <code>"yy"</code>), the parser must interpret the abbreviated year relative
 to some century. It does this by adjusting dates to be within 80 years before
 and 20 years after the time the parser instance is created. For example,
 using a pattern of <code>"MM/dd/yy"</code> and a <code>DateTimeFormat</code>
 object created on Jan 1, 1997, the string <code>"01/11/12"</code> would be
 interpreted as Jan 11, 2012 while the string <code>"05/04/64"</code> would be
 interpreted as May 4, 1964. During parsing, only strings consisting of
 exactly two digits, as defined by <code>Character.isDigit(char)</code>,
 will be parsed into the default century. If the year pattern does not have
 exactly two 'y' characters, the year is interpreted literally, regardless of
 the number of digits. For example, using the pattern
 <code>"MM/dd/yyyy"</code>, "01/11/12" parses to Jan 11, 12 A.D.
 </p>
 
 <p>
 When numeric fields abut one another directly, with no intervening delimiter
 characters, they constitute a run of abutting numeric fields. Such runs are
 parsed specially. For example, the format "HHmmss" parses the input text
 "123456" to 12:34:56, parses the input text "12345" to 1:23:45, and fails to
 parse "1234". In other words, the leftmost field of the run is flexible,
 while the others keep a fixed width. If the parse fails anywhere in the run,
 then the leftmost field is shortened by one character, and the entire run is
 parsed again. This is repeated until either the parse succeeds or the
 leftmost field is one character in length. If the parse still fails at that
 point, the parse of the run fails.
 </p>
 
 <p>
 In the current implementation, timezone parsing only supports
 <code>GMT:hhmm</code>, <code>GMT:+hhmm</code>, and <code>GMT:-hhmm</code>.
 </p>
 
 <h3>Example</h3> <blockquote><pre>public class DateTimeFormatExample implements EntryPoint {

  public void onModuleLoad() {
    Date today = new Date();

    // prints Tue Dec 18 12:01:26 GMT-500 2007 in the default locale.
    GWT.log(today.toString());

    // prints 12/18/07 in the default locale
    GWT.log(DateTimeFormat.getShortDateFormat().format(today));

    // prints December 18, 2007 in the default locale
    GWT.log(DateTimeFormat.getLongDateFormat().format(today));

    // prints 12:01 PM in the default locale
    GWT.log(DateTimeFormat.getShortTimeFormat().format(today));

    // prints 12:01:26 PM GMT-05:00 in the default locale
    GWT.log(DateTimeFormat.getLongTimeFormat().format(today));

    // prints Dec 18, 2007 12:01:26 PM in the default locale
    GWT.log(DateTimeFormat.getMediumDateTimeFormat().format(today));

    // A custom date format
    DateTimeFormat fmt = DateTimeFormat.getFormat("EEEE, MMMM dd, yyyy");
    // prints Monday, December 17, 2007 in the default locale
    GWT.log(fmt.format(today));
  }
}
</pre></blockquote>

 deprecated use <a href="../../../../../com/google/gwt/i18n/shared/DateTimeFormat.html" title="class in com.google.gwt.i18n.shared"><code>DateTimeFormat</code></a> instead</div>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== NESTED CLASS SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="nested.class.summary">
<!--   -->
</a>
<h3>Nested Class Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Nested Class Summary table, listing nested classes, and an explanation">
<caption><span>Nested Classes</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Class and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static class&nbsp;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.PredefinedFormat.html" title="enum in com.google.gwt.i18n.client">DateTimeFormat.PredefinedFormat</a></span></code>
<div class="block">Predefined date/time formats -- see <a href="../../../../../com/google/gwt/i18n/client/CustomDateTimeFormat.html" title="interface in com.google.gwt.i18n.client"><code>CustomDateTimeFormat</code></a> if you
 need some format that isn't supplied here.</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.summary">
<!--   -->
</a>
<h3>Field Summary</h3>
<ul class="blockList">
<li class="blockList"><a name="fields.inherited.from.class.com.google.gwt.i18n.shared.DateTimeFormat">
<!--   -->
</a>
<h3>Fields inherited from class&nbsp;com.google.gwt.i18n.shared.<a href="../../../../../com/google/gwt/i18n/shared/DateTimeFormat.html" title="class in com.google.gwt.i18n.shared">DateTimeFormat</a></h3>
<code><a href="../../../../../com/google/gwt/i18n/shared/DateTimeFormat.html#ISO8601_PATTERN">ISO8601_PATTERN</a>, <a href="../../../../../com/google/gwt/i18n/shared/DateTimeFormat.html#RFC2822_PATTERN">RFC2822_PATTERN</a></code></li>
</ul>
</li>
</ul>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.summary">
<!--   -->
</a>
<h3>Constructor Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier</th>
<th class="colLast" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected </code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.html#DateTimeFormat-java.lang.String-">DateTimeFormat</a></span>(java.lang.String&nbsp;pattern)</code>
<div class="block">Constructs a format object using the specified pattern and the date time
 constants for the default locale.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected </code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.html#DateTimeFormat-java.lang.String-com.google.gwt.i18n.client.constants.DateTimeConstants-">DateTimeFormat</a></span>(java.lang.String&nbsp;pattern,
              <a href="../../../../../com/google/gwt/i18n/client/constants/DateTimeConstants.html" title="interface in com.google.gwt.i18n.client.constants">DateTimeConstants</a>&nbsp;dateTimeConstants)</code>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;
<div class="block"><span class="deprecationComment">use <a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.html#DateTimeFormat-java.lang.String-com.google.gwt.i18n.client.DateTimeFormatInfo-"><code>DateTimeFormat(String, DateTimeFormatInfo)</code></a></span></div>
</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected </code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.html#DateTimeFormat-java.lang.String-com.google.gwt.i18n.client.DateTimeFormatInfo-">DateTimeFormat</a></span>(java.lang.String&nbsp;pattern,
              <a href="../../../../../com/google/gwt/i18n/client/DateTimeFormatInfo.html" title="interface in com.google.gwt.i18n.client">DateTimeFormatInfo</a>&nbsp;dtfi)</code>
<div class="block">Constructs a format object using the specified pattern and user-supplied
 date time constants.</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method.summary">
<!--   -->
</a>
<h3>Method Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t6" class="tableTab"><span><a href="javascript:show(32);">Deprecated Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code>static <a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.html" title="class in com.google.gwt.i18n.client">DateTimeFormat</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.html#getFormat-com.google.gwt.i18n.client.DateTimeFormat.PredefinedFormat-">getFormat</a></span>(<a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.PredefinedFormat.html" title="enum in com.google.gwt.i18n.client">DateTimeFormat.PredefinedFormat</a>&nbsp;predef)</code>
<div class="block">Get a DateTimeFormat instance for a predefined format.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>static <a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.html" title="class in com.google.gwt.i18n.client">DateTimeFormat</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.html#getFormat-java.lang.String-">getFormat</a></span>(java.lang.String&nbsp;pattern)</code>
<div class="block">Returns a DateTimeFormat object using the specified pattern.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>protected static <a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.html" title="class in com.google.gwt.i18n.client">DateTimeFormat</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.html#getFormat-java.lang.String-com.google.gwt.i18n.client.DateTimeFormatInfo-">getFormat</a></span>(java.lang.String&nbsp;pattern,
         <a href="../../../../../com/google/gwt/i18n/client/DateTimeFormatInfo.html" title="interface in com.google.gwt.i18n.client">DateTimeFormatInfo</a>&nbsp;dtfi)</code>
<div class="block">Internal factory method that provides caching.</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>static <a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.html" title="class in com.google.gwt.i18n.client">DateTimeFormat</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.html#getFullDateFormat--">getFullDateFormat</a></span>()</code>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;
<div class="block"><span class="deprecationComment">use <a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.html#getFormat-com.google.gwt.i18n.client.DateTimeFormat.PredefinedFormat-"><code>getFormat(PredefinedFormat)</code></a> with
     <a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.PredefinedFormat.html#DATE_FULL"><code>DateTimeFormat.PredefinedFormat.DATE_FULL</code></a> instead</span></div>
</div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code>static <a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.html" title="class in com.google.gwt.i18n.client">DateTimeFormat</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.html#getFullDateTimeFormat--">getFullDateTimeFormat</a></span>()</code>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;
<div class="block"><span class="deprecationComment">use <a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.html#getFormat-com.google.gwt.i18n.client.DateTimeFormat.PredefinedFormat-"><code>getFormat(PredefinedFormat)</code></a> with
     <a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.PredefinedFormat.html#DATE_TIME_FULL"><code>DateTimeFormat.PredefinedFormat.DATE_TIME_FULL</code></a> instead</span></div>
</div>
</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code>static <a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.html" title="class in com.google.gwt.i18n.client">DateTimeFormat</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.html#getFullTimeFormat--">getFullTimeFormat</a></span>()</code>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;
<div class="block"><span class="deprecationComment">use <a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.html#getFormat-com.google.gwt.i18n.client.DateTimeFormat.PredefinedFormat-"><code>getFormat(PredefinedFormat)</code></a> with
     <a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.PredefinedFormat.html#TIME_FULL"><code>DateTimeFormat.PredefinedFormat.TIME_FULL</code></a> instead</span></div>
</div>
</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code>static <a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.html" title="class in com.google.gwt.i18n.client">DateTimeFormat</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.html#getLongDateFormat--">getLongDateFormat</a></span>()</code>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;
<div class="block"><span class="deprecationComment">use <a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.html#getFormat-com.google.gwt.i18n.client.DateTimeFormat.PredefinedFormat-"><code>getFormat(PredefinedFormat)</code></a> with
     <a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.PredefinedFormat.html#DATE_LONG"><code>DateTimeFormat.PredefinedFormat.DATE_LONG</code></a> instead</span></div>
</div>
</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code>static <a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.html" title="class in com.google.gwt.i18n.client">DateTimeFormat</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.html#getLongDateTimeFormat--">getLongDateTimeFormat</a></span>()</code>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;
<div class="block"><span class="deprecationComment">use <a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.html#getFormat-com.google.gwt.i18n.client.DateTimeFormat.PredefinedFormat-"><code>getFormat(PredefinedFormat)</code></a> with
     <a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.PredefinedFormat.html#DATE_TIME_LONG"><code>DateTimeFormat.PredefinedFormat.DATE_TIME_LONG</code></a> instead</span></div>
</div>
</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code>static <a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.html" title="class in com.google.gwt.i18n.client">DateTimeFormat</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.html#getLongTimeFormat--">getLongTimeFormat</a></span>()</code>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;
<div class="block"><span class="deprecationComment">use <a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.html#getFormat-com.google.gwt.i18n.client.DateTimeFormat.PredefinedFormat-"><code>getFormat(PredefinedFormat)</code></a> with
     <a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.PredefinedFormat.html#TIME_LONG"><code>DateTimeFormat.PredefinedFormat.TIME_LONG</code></a> instead</span></div>
</div>
</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code>static <a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.html" title="class in com.google.gwt.i18n.client">DateTimeFormat</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.html#getMediumDateFormat--">getMediumDateFormat</a></span>()</code>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;
<div class="block"><span class="deprecationComment">use <a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.html#getFormat-com.google.gwt.i18n.client.DateTimeFormat.PredefinedFormat-"><code>getFormat(PredefinedFormat)</code></a> with
     <a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.PredefinedFormat.html#DATE_MEDIUM"><code>DateTimeFormat.PredefinedFormat.DATE_MEDIUM</code></a> instead</span></div>
</div>
</td>
</tr>
<tr id="i10" class="altColor">
<td class="colFirst"><code>static <a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.html" title="class in com.google.gwt.i18n.client">DateTimeFormat</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.html#getMediumDateTimeFormat--">getMediumDateTimeFormat</a></span>()</code>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;
<div class="block"><span class="deprecationComment">use <a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.html#getFormat-com.google.gwt.i18n.client.DateTimeFormat.PredefinedFormat-"><code>getFormat(PredefinedFormat)</code></a> with
     <a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.PredefinedFormat.html#DATE_TIME_MEDIUM"><code>DateTimeFormat.PredefinedFormat.DATE_TIME_MEDIUM</code></a> instead</span></div>
</div>
</td>
</tr>
<tr id="i11" class="rowColor">
<td class="colFirst"><code>static <a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.html" title="class in com.google.gwt.i18n.client">DateTimeFormat</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.html#getMediumTimeFormat--">getMediumTimeFormat</a></span>()</code>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;
<div class="block"><span class="deprecationComment">use <a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.html#getFormat-com.google.gwt.i18n.client.DateTimeFormat.PredefinedFormat-"><code>getFormat(PredefinedFormat)</code></a> with
     <a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.PredefinedFormat.html#TIME_MEDIUM"><code>DateTimeFormat.PredefinedFormat.TIME_MEDIUM</code></a> instead</span></div>
</div>
</td>
</tr>
<tr id="i12" class="altColor">
<td class="colFirst"><code>static <a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.html" title="class in com.google.gwt.i18n.client">DateTimeFormat</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.html#getShortDateFormat--">getShortDateFormat</a></span>()</code>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;
<div class="block"><span class="deprecationComment">use <a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.html#getFormat-com.google.gwt.i18n.client.DateTimeFormat.PredefinedFormat-"><code>getFormat(PredefinedFormat)</code></a> with
     <a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.PredefinedFormat.html#DATE_SHORT"><code>DateTimeFormat.PredefinedFormat.DATE_SHORT</code></a> instead</span></div>
</div>
</td>
</tr>
<tr id="i13" class="rowColor">
<td class="colFirst"><code>static <a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.html" title="class in com.google.gwt.i18n.client">DateTimeFormat</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.html#getShortDateTimeFormat--">getShortDateTimeFormat</a></span>()</code>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;
<div class="block"><span class="deprecationComment">use <a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.html#getFormat-com.google.gwt.i18n.client.DateTimeFormat.PredefinedFormat-"><code>getFormat(PredefinedFormat)</code></a> with
     <a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.PredefinedFormat.html#DATE_TIME_SHORT"><code>DateTimeFormat.PredefinedFormat.DATE_TIME_SHORT</code></a> instead</span></div>
</div>
</td>
</tr>
<tr id="i14" class="altColor">
<td class="colFirst"><code>static <a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.html" title="class in com.google.gwt.i18n.client">DateTimeFormat</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.html#getShortTimeFormat--">getShortTimeFormat</a></span>()</code>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;
<div class="block"><span class="deprecationComment">use <a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.html#getFormat-com.google.gwt.i18n.client.DateTimeFormat.PredefinedFormat-"><code>getFormat(PredefinedFormat)</code></a> with
     <a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.PredefinedFormat.html#TIME_SHORT"><code>DateTimeFormat.PredefinedFormat.TIME_SHORT</code></a> instead</span></div>
</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.com.google.gwt.i18n.shared.DateTimeFormat">
<!--   -->
</a>
<h3>Methods inherited from class&nbsp;com.google.gwt.i18n.shared.<a href="../../../../../com/google/gwt/i18n/shared/DateTimeFormat.html" title="class in com.google.gwt.i18n.shared">DateTimeFormat</a></h3>
<code><a href="../../../../../com/google/gwt/i18n/shared/DateTimeFormat.html#createTimeZone-int-">createTimeZone</a>, <a href="../../../../../com/google/gwt/i18n/shared/DateTimeFormat.html#format-java.util.Date-">format</a>, <a href="../../../../../com/google/gwt/i18n/shared/DateTimeFormat.html#format-java.util.Date-com.google.gwt.i18n.shared.TimeZone-">format</a>, <a href="../../../../../com/google/gwt/i18n/shared/DateTimeFormat.html#getPattern--">getPattern</a>, <a href="../../../../../com/google/gwt/i18n/shared/DateTimeFormat.html#parse-java.lang.String-">parse</a>, <a href="../../../../../com/google/gwt/i18n/shared/DateTimeFormat.html#parse-java.lang.String-int-java.util.Date-">parse</a>, <a href="../../../../../com/google/gwt/i18n/shared/DateTimeFormat.html#parseStrict-java.lang.String-">parseStrict</a>, <a href="../../../../../com/google/gwt/i18n/shared/DateTimeFormat.html#parseStrict-java.lang.String-int-java.util.Date-">parseStrict</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
<!--   -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.Object</h3>
<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.detail">
<!--   -->
</a>
<h3>Constructor Detail</h3>
<a name="DateTimeFormat-java.lang.String-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>DateTimeFormat</h4>
<pre>protected&nbsp;DateTimeFormat(java.lang.String&nbsp;pattern)</pre>
<div class="block">Constructs a format object using the specified pattern and the date time
 constants for the default locale.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>pattern</code> - string pattern specification</dd>
</dl>
</li>
</ul>
<a name="DateTimeFormat-java.lang.String-com.google.gwt.i18n.client.constants.DateTimeConstants-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>DateTimeFormat</h4>
<pre>@Deprecated
protected&nbsp;DateTimeFormat(java.lang.String&nbsp;pattern,
                                     <a href="../../../../../com/google/gwt/i18n/client/constants/DateTimeConstants.html" title="interface in com.google.gwt.i18n.client.constants">DateTimeConstants</a>&nbsp;dateTimeConstants)</pre>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;<span class="deprecationComment">use <a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.html#DateTimeFormat-java.lang.String-com.google.gwt.i18n.client.DateTimeFormatInfo-"><code>DateTimeFormat(String, DateTimeFormatInfo)</code></a></span></div>
<div class="block">Constructs a format object using the specified pattern and user-supplied
 date time constants.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>pattern</code> - string pattern specification</dd>
<dd><code>dateTimeConstants</code> - locale specific symbol collection</dd>
</dl>
</li>
</ul>
<a name="DateTimeFormat-java.lang.String-com.google.gwt.i18n.client.DateTimeFormatInfo-">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>DateTimeFormat</h4>
<pre>protected&nbsp;DateTimeFormat(java.lang.String&nbsp;pattern,
                         <a href="../../../../../com/google/gwt/i18n/client/DateTimeFormatInfo.html" title="interface in com.google.gwt.i18n.client">DateTimeFormatInfo</a>&nbsp;dtfi)</pre>
<div class="block">Constructs a format object using the specified pattern and user-supplied
 date time constants.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>pattern</code> - string pattern specification</dd>
<dd><code>dtfi</code> - DateTimeFormatInfo instance to use</dd>
</dl>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!--   -->
</a>
<h3>Method Detail</h3>
<a name="getFormat-com.google.gwt.i18n.client.DateTimeFormat.PredefinedFormat-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getFormat</h4>
<pre>public static&nbsp;<a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.html" title="class in com.google.gwt.i18n.client">DateTimeFormat</a>&nbsp;getFormat(<a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.PredefinedFormat.html" title="enum in com.google.gwt.i18n.client">DateTimeFormat.PredefinedFormat</a>&nbsp;predef)</pre>
<div class="block">Get a DateTimeFormat instance for a predefined format.
 
 <p>See <a href="../../../../../com/google/gwt/i18n/client/CustomDateTimeFormat.html" title="interface in com.google.gwt.i18n.client"><code>CustomDateTimeFormat</code></a> if you need a localized format that is
 not supported here.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>predef</code> - <a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.PredefinedFormat.html" title="enum in com.google.gwt.i18n.client"><code>DateTimeFormat.PredefinedFormat</code></a> describing desired format</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a DateTimeFormat instance for the specified format</dd>
</dl>
</li>
</ul>
<a name="getFormat-java.lang.String-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getFormat</h4>
<pre>public static&nbsp;<a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.html" title="class in com.google.gwt.i18n.client">DateTimeFormat</a>&nbsp;getFormat(java.lang.String&nbsp;pattern)</pre>
<div class="block">Returns a DateTimeFormat object using the specified pattern. If you need to
 format or parse repeatedly using the same pattern, it is highly recommended
 that you cache the returned <code>DateTimeFormat</code> object and reuse it
 rather than calling this method repeatedly.
 
 <p>Note that the pattern supplied is used as-is -- for example, if you
 supply "MM/dd/yyyy" as the pattern, that is the order you will get the
 fields, even in locales where the order is different.  It is recommended to
 use <a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.html#getFormat-com.google.gwt.i18n.client.DateTimeFormat.PredefinedFormat-"><code>getFormat(PredefinedFormat)</code></a> instead -- if you use this method,
 you are taking responsibility for localizing the patterns yourself.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>pattern</code> - string to specify how the date should be formatted</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a <code>DateTimeFormat</code> object that can be used for format or
         parse date/time values matching the specified pattern</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.IllegalArgumentException</code> - if the specified pattern could not be
           parsed</dd>
</dl>
</li>
</ul>
<a name="getFullDateFormat--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getFullDateFormat</h4>
<pre>@Deprecated
public static&nbsp;<a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.html" title="class in com.google.gwt.i18n.client">DateTimeFormat</a>&nbsp;getFullDateFormat()</pre>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;<span class="deprecationComment">use <a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.html#getFormat-com.google.gwt.i18n.client.DateTimeFormat.PredefinedFormat-"><code>getFormat(PredefinedFormat)</code></a> with
     <a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.PredefinedFormat.html#DATE_FULL"><code>DateTimeFormat.PredefinedFormat.DATE_FULL</code></a> instead</span></div>
<div class="block">Retrieve the DateTimeFormat object for full date format. The pattern for
 this format is predefined for each locale.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>A DateTimeFormat object</dd>
</dl>
</li>
</ul>
<a name="getFullDateTimeFormat--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getFullDateTimeFormat</h4>
<pre>@Deprecated
public static&nbsp;<a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.html" title="class in com.google.gwt.i18n.client">DateTimeFormat</a>&nbsp;getFullDateTimeFormat()</pre>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;<span class="deprecationComment">use <a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.html#getFormat-com.google.gwt.i18n.client.DateTimeFormat.PredefinedFormat-"><code>getFormat(PredefinedFormat)</code></a> with
     <a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.PredefinedFormat.html#DATE_TIME_FULL"><code>DateTimeFormat.PredefinedFormat.DATE_TIME_FULL</code></a> instead</span></div>
<div class="block">Retrieve the DateTimeFormat object for full date and time format. The
 pattern for this format is predefined for each locale.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>A DateTimeFormat object</dd>
</dl>
</li>
</ul>
<a name="getFullTimeFormat--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getFullTimeFormat</h4>
<pre>@Deprecated
public static&nbsp;<a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.html" title="class in com.google.gwt.i18n.client">DateTimeFormat</a>&nbsp;getFullTimeFormat()</pre>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;<span class="deprecationComment">use <a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.html#getFormat-com.google.gwt.i18n.client.DateTimeFormat.PredefinedFormat-"><code>getFormat(PredefinedFormat)</code></a> with
     <a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.PredefinedFormat.html#TIME_FULL"><code>DateTimeFormat.PredefinedFormat.TIME_FULL</code></a> instead</span></div>
<div class="block">Retrieve the DateTimeFormat object for full time format. The pattern for
 this format is predefined for each locale.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>A DateTimeFormat object</dd>
</dl>
</li>
</ul>
<a name="getLongDateFormat--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getLongDateFormat</h4>
<pre>@Deprecated
public static&nbsp;<a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.html" title="class in com.google.gwt.i18n.client">DateTimeFormat</a>&nbsp;getLongDateFormat()</pre>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;<span class="deprecationComment">use <a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.html#getFormat-com.google.gwt.i18n.client.DateTimeFormat.PredefinedFormat-"><code>getFormat(PredefinedFormat)</code></a> with
     <a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.PredefinedFormat.html#DATE_LONG"><code>DateTimeFormat.PredefinedFormat.DATE_LONG</code></a> instead</span></div>
<div class="block">Retrieve the DateTimeFormat object for long date format. The pattern for
 this format is predefined for each locale.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>A DateTimeFormat object</dd>
</dl>
</li>
</ul>
<a name="getLongDateTimeFormat--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getLongDateTimeFormat</h4>
<pre>@Deprecated
public static&nbsp;<a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.html" title="class in com.google.gwt.i18n.client">DateTimeFormat</a>&nbsp;getLongDateTimeFormat()</pre>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;<span class="deprecationComment">use <a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.html#getFormat-com.google.gwt.i18n.client.DateTimeFormat.PredefinedFormat-"><code>getFormat(PredefinedFormat)</code></a> with
     <a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.PredefinedFormat.html#DATE_TIME_LONG"><code>DateTimeFormat.PredefinedFormat.DATE_TIME_LONG</code></a> instead</span></div>
<div class="block">Retrieve the DateTimeFormat object for long date and time format. The
 pattern for this format is predefined for each locale.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>A DateTimeFormat object</dd>
</dl>
</li>
</ul>
<a name="getLongTimeFormat--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getLongTimeFormat</h4>
<pre>@Deprecated
public static&nbsp;<a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.html" title="class in com.google.gwt.i18n.client">DateTimeFormat</a>&nbsp;getLongTimeFormat()</pre>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;<span class="deprecationComment">use <a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.html#getFormat-com.google.gwt.i18n.client.DateTimeFormat.PredefinedFormat-"><code>getFormat(PredefinedFormat)</code></a> with
     <a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.PredefinedFormat.html#TIME_LONG"><code>DateTimeFormat.PredefinedFormat.TIME_LONG</code></a> instead</span></div>
<div class="block">Retrieve the DateTimeFormat object for long time format. The pattern for
 this format is predefined for each locale.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>A DateTimeFormat object</dd>
</dl>
</li>
</ul>
<a name="getMediumDateFormat--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getMediumDateFormat</h4>
<pre>@Deprecated
public static&nbsp;<a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.html" title="class in com.google.gwt.i18n.client">DateTimeFormat</a>&nbsp;getMediumDateFormat()</pre>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;<span class="deprecationComment">use <a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.html#getFormat-com.google.gwt.i18n.client.DateTimeFormat.PredefinedFormat-"><code>getFormat(PredefinedFormat)</code></a> with
     <a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.PredefinedFormat.html#DATE_MEDIUM"><code>DateTimeFormat.PredefinedFormat.DATE_MEDIUM</code></a> instead</span></div>
<div class="block">Retrieve the DateTimeFormat object for medium date format. The pattern for
 this format is predefined for each locale.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>A DateTimeFormat object</dd>
</dl>
</li>
</ul>
<a name="getMediumDateTimeFormat--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getMediumDateTimeFormat</h4>
<pre>@Deprecated
public static&nbsp;<a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.html" title="class in com.google.gwt.i18n.client">DateTimeFormat</a>&nbsp;getMediumDateTimeFormat()</pre>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;<span class="deprecationComment">use <a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.html#getFormat-com.google.gwt.i18n.client.DateTimeFormat.PredefinedFormat-"><code>getFormat(PredefinedFormat)</code></a> with
     <a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.PredefinedFormat.html#DATE_TIME_MEDIUM"><code>DateTimeFormat.PredefinedFormat.DATE_TIME_MEDIUM</code></a> instead</span></div>
<div class="block">Retrieve the DateTimeFormat object for medium date and time format. The
 pattern for this format is predefined for each locale.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>A DateTimeFormat object</dd>
</dl>
</li>
</ul>
<a name="getMediumTimeFormat--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getMediumTimeFormat</h4>
<pre>@Deprecated
public static&nbsp;<a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.html" title="class in com.google.gwt.i18n.client">DateTimeFormat</a>&nbsp;getMediumTimeFormat()</pre>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;<span class="deprecationComment">use <a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.html#getFormat-com.google.gwt.i18n.client.DateTimeFormat.PredefinedFormat-"><code>getFormat(PredefinedFormat)</code></a> with
     <a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.PredefinedFormat.html#TIME_MEDIUM"><code>DateTimeFormat.PredefinedFormat.TIME_MEDIUM</code></a> instead</span></div>
<div class="block">Retrieve the DateTimeFormat object for medium time format. The pattern for
 this format is predefined for each locale.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>A DateTimeFormat object</dd>
</dl>
</li>
</ul>
<a name="getShortDateFormat--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getShortDateFormat</h4>
<pre>@Deprecated
public static&nbsp;<a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.html" title="class in com.google.gwt.i18n.client">DateTimeFormat</a>&nbsp;getShortDateFormat()</pre>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;<span class="deprecationComment">use <a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.html#getFormat-com.google.gwt.i18n.client.DateTimeFormat.PredefinedFormat-"><code>getFormat(PredefinedFormat)</code></a> with
     <a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.PredefinedFormat.html#DATE_SHORT"><code>DateTimeFormat.PredefinedFormat.DATE_SHORT</code></a> instead</span></div>
<div class="block">Retrieve the DateTimeFormat object for short date format. The pattern for
 this format is predefined for each locale.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>A DateTimeFormat object</dd>
</dl>
</li>
</ul>
<a name="getShortDateTimeFormat--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getShortDateTimeFormat</h4>
<pre>@Deprecated
public static&nbsp;<a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.html" title="class in com.google.gwt.i18n.client">DateTimeFormat</a>&nbsp;getShortDateTimeFormat()</pre>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;<span class="deprecationComment">use <a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.html#getFormat-com.google.gwt.i18n.client.DateTimeFormat.PredefinedFormat-"><code>getFormat(PredefinedFormat)</code></a> with
     <a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.PredefinedFormat.html#DATE_TIME_SHORT"><code>DateTimeFormat.PredefinedFormat.DATE_TIME_SHORT</code></a> instead</span></div>
<div class="block">Retrieve the DateTimeFormat object for short date and time format. The
 pattern for this format is predefined for each locale.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>A DateTimeFormat object</dd>
</dl>
</li>
</ul>
<a name="getShortTimeFormat--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getShortTimeFormat</h4>
<pre>@Deprecated
public static&nbsp;<a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.html" title="class in com.google.gwt.i18n.client">DateTimeFormat</a>&nbsp;getShortTimeFormat()</pre>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;<span class="deprecationComment">use <a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.html#getFormat-com.google.gwt.i18n.client.DateTimeFormat.PredefinedFormat-"><code>getFormat(PredefinedFormat)</code></a> with
     <a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.PredefinedFormat.html#TIME_SHORT"><code>DateTimeFormat.PredefinedFormat.TIME_SHORT</code></a> instead</span></div>
<div class="block">Retrieve the DateTimeFormat object for short time format. The pattern for
 this format is predefined for each locale.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>A DateTimeFormat object.</dd>
</dl>
</li>
</ul>
<a name="getFormat-java.lang.String-com.google.gwt.i18n.client.DateTimeFormatInfo-">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>getFormat</h4>
<pre>protected static&nbsp;<a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.html" title="class in com.google.gwt.i18n.client">DateTimeFormat</a>&nbsp;getFormat(java.lang.String&nbsp;pattern,
                                          <a href="../../../../../com/google/gwt/i18n/client/DateTimeFormatInfo.html" title="interface in com.google.gwt.i18n.client">DateTimeFormatInfo</a>&nbsp;dtfi)</pre>
<div class="block">Internal factory method that provides caching.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>pattern</code> - </dd>
<dd><code>dtfi</code> - </dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>DateTimeFormat instance</dd>
</dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!--   -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.bottom.firstrow">
<!--   -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/DateTimeFormat.html">Use</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
<div class="aboutLanguage">GWT 2.9.0</div>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../com/google/gwt/i18n/client/DateTimeConstantsAdapter.html" title="class in com.google.gwt.i18n.client"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../../com/google/gwt/i18n/client/DateTimeFormat.PredefinedFormat.html" title="enum in com.google.gwt.i18n.client"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?com/google/gwt/i18n/client/DateTimeFormat.html" target="_top">Frames</a></li>
<li><a href="DateTimeFormat.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_bottom");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li><a href="#nested.class.summary">Nested</a>&nbsp;|&nbsp;</li>
<li><a href="#fields.inherited.from.class.com.google.gwt.i18n.shared.DateTimeFormat">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.bottom">
<!--   -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>
