<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!-- qdatetime.cpp --> <title>Obsolete Members for QDate | Qt Core 5.12.2</title> <link rel="stylesheet" type="text/css" href="style/offline-simple.css" /> <script type="text/javascript"> document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css"); // loading style sheet breaks anchors that were jumped to before // so force jumping to anchor again setTimeout(function() { var anchor = location.hash; // need to jump to different anchor first (e.g. none) location.hash = "#"; setTimeout(function() { location.hash = anchor; }, 0); }, 0); </script> </head> <body> <div class="header" id="qtdocheader"> <div class="main"> <div class="main-rounded"> <div class="navigationbar"> <table><tr> <td >Qt 5.12</td><td ><a href="qtcore-index.html">Qt Core</a></td><td ><a href="qtcore-module.html">C++ Classes</a></td><td >QDate</td></tr></table><table class="buildversion"><tr> <td id="buildversion" width="100%" align="right"><a href="qtcore-index.html">Qt 5.12.2 Reference Documentation</a></td> </tr></table> </div> </div> <div class="content"> <div class="line"> <div class="content mainContent"> <div class="sidebar"><div class="sidebar-content" id="sidebar-content"></div></div> <h1 class="title">Obsolete Members for QDate</h1> <p><b>The following members of class <a href="qdate.html">QDate</a> are obsolete.</b> They are provided to keep old source code working. We strongly advise against using them in new code.</p> <h2>Public Functions</h2> <div class="table"><table class="alignedsummary"> <tr><td class="memItemLeft topAlign rightAlign"> <code>(obsolete) </code>bool </td><td class="memItemRight bottomAlign"><b><a href="qdate-obsolete.html#setYMD">setYMD</a></b>(int <i>y</i>, int <i>m</i>, int <i>d</i>)</td></tr> </table></div> <h2>Static Public Members</h2> <div class="table"><table class="alignedsummary"> <tr><td class="memItemLeft topAlign rightAlign"> <code>(obsolete) </code>QString </td><td class="memItemRight bottomAlign"><b><a href="qdate-obsolete.html#longDayName">longDayName</a></b>(int <i>weekday</i>, QDate::MonthNameType <i>type</i> = DateFormat)</td></tr> <tr><td class="memItemLeft topAlign rightAlign"> <code>(obsolete) </code>QString </td><td class="memItemRight bottomAlign"><b><a href="qdate-obsolete.html#longMonthName">longMonthName</a></b>(int <i>month</i>, QDate::MonthNameType <i>type</i> = DateFormat)</td></tr> <tr><td class="memItemLeft topAlign rightAlign"> <code>(obsolete) </code>QString </td><td class="memItemRight bottomAlign"><b><a href="qdate-obsolete.html#shortDayName">shortDayName</a></b>(int <i>weekday</i>, QDate::MonthNameType <i>type</i> = DateFormat)</td></tr> <tr><td class="memItemLeft topAlign rightAlign"> <code>(obsolete) </code>QString </td><td class="memItemRight bottomAlign"><b><a href="qdate-obsolete.html#shortMonthName">shortMonthName</a></b>(int <i>month</i>, QDate::MonthNameType <i>type</i> = DateFormat)</td></tr> </table></div> <h2>Member Function Documentation</h2> <!-- $$$longDayName[overload1]$$$longDayNameintQDate::MonthNameType --> <h3 class="fn" id="longDayName"><a name="longDayName"></a><code>[static] </code><span class="type"><a href="qstring.html">QString</a></span> QDate::<span class="name">longDayName</span>(<span class="type">int</span> <i>weekday</i>, <span class="type"><a href="qdate.html#MonthNameType-enum">QDate::MonthNameType</a></span> <i>type</i> = DateFormat)</h3> <p>This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.</p> <p>Returns the long name of the <i>weekday</i> for the representation specified by <i>type</i>.</p> <p>The days are enumerated using the following convention:</p> <ul> <li>1 = "Monday"</li> <li>2 = "Tuesday"</li> <li>3 = "Wednesday"</li> <li>4 = "Thursday"</li> <li>5 = "Friday"</li> <li>6 = "Saturday"</li> <li>7 = "Sunday"</li> </ul> <p>The day names will be localized according to the system's locale settings, i.e. using <a href="qlocale.html#system">QLocale::system</a>().</p> <p>Returns an empty string if the date is invalid.</p> <p>This function was introduced in Qt 4.5.</p> <p><b>See also </b><a href="qdate.html#toString">toString</a>(), <a href="qdate-obsolete.html#shortDayName">shortDayName</a>(), <a href="qdate-obsolete.html#shortMonthName">shortMonthName</a>(), and <a href="qdate-obsolete.html#longMonthName">longMonthName</a>().</p> <!-- @@@longDayName --> <!-- $$$longMonthName[overload1]$$$longMonthNameintQDate::MonthNameType --> <h3 class="fn" id="longMonthName"><a name="longMonthName"></a><code>[static] </code><span class="type"><a href="qstring.html">QString</a></span> QDate::<span class="name">longMonthName</span>(<span class="type">int</span> <i>month</i>, <span class="type"><a href="qdate.html#MonthNameType-enum">QDate::MonthNameType</a></span> <i>type</i> = DateFormat)</h3> <p>This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.</p> <p>Returns the long name of the <i>month</i> for the representation specified by <i>type</i>.</p> <p>The months are enumerated using the following convention:</p> <ul> <li>1 = "January"</li> <li>2 = "February"</li> <li>3 = "March"</li> <li>4 = "April"</li> <li>5 = "May"</li> <li>6 = "June"</li> <li>7 = "July"</li> <li>8 = "August"</li> <li>9 = "September"</li> <li>10 = "October"</li> <li>11 = "November"</li> <li>12 = "December"</li> </ul> <p>The month names will be localized according to the system's locale settings, i.e. using <a href="qlocale.html#system">QLocale::system</a>().</p> <p>Returns an empty string if the date is invalid.</p> <p>This function was introduced in Qt 4.5.</p> <p><b>See also </b><a href="qdate.html#toString">toString</a>(), <a href="qdate-obsolete.html#shortMonthName">shortMonthName</a>(), <a href="qdate-obsolete.html#shortDayName">shortDayName</a>(), and <a href="qdate-obsolete.html#longDayName">longDayName</a>().</p> <!-- @@@longMonthName --> <!-- $$$setYMD[overload1]$$$setYMDintintint --> <h3 class="fn" id="setYMD"><a name="setYMD"></a><span class="type">bool</span> QDate::<span class="name">setYMD</span>(<span class="type">int</span> <i>y</i>, <span class="type">int</span> <i>m</i>, <span class="type">int</span> <i>d</i>)</h3> <p>This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.</p> <p>Sets the date's year <i>y</i>, month <i>m</i>, and day <i>d</i>.</p> <p>If <i>y</i> is in the range 0 to 99, it is interpreted as 1900 to 1999. Returns <code>false</code> if the date is invalid.</p> <p>Use <a href="qdate.html#setDate">setDate</a>() instead.</p> <!-- @@@setYMD --> <!-- $$$shortDayName[overload1]$$$shortDayNameintQDate::MonthNameType --> <h3 class="fn" id="shortDayName"><a name="shortDayName"></a><code>[static] </code><span class="type"><a href="qstring.html">QString</a></span> QDate::<span class="name">shortDayName</span>(<span class="type">int</span> <i>weekday</i>, <span class="type"><a href="qdate.html#MonthNameType-enum">QDate::MonthNameType</a></span> <i>type</i> = DateFormat)</h3> <p>This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.</p> <p>Returns the short name of the <i>weekday</i> for the representation specified by <i>type</i>.</p> <p>The days are enumerated using the following convention:</p> <ul> <li>1 = "Mon"</li> <li>2 = "Tue"</li> <li>3 = "Wed"</li> <li>4 = "Thu"</li> <li>5 = "Fri"</li> <li>6 = "Sat"</li> <li>7 = "Sun"</li> </ul> <p>The day names will be localized according to the system's locale settings, i.e. using <a href="qlocale.html#system">QLocale::system</a>().</p> <p>Returns an empty string if the date is invalid.</p> <p>This function was introduced in Qt 4.5.</p> <p><b>See also </b><a href="qdate.html#toString">toString</a>(), <a href="qdate-obsolete.html#shortMonthName">shortMonthName</a>(), <a href="qdate-obsolete.html#longMonthName">longMonthName</a>(), and <a href="qdate-obsolete.html#longDayName">longDayName</a>().</p> <!-- @@@shortDayName --> <!-- $$$shortMonthName[overload1]$$$shortMonthNameintQDate::MonthNameType --> <h3 class="fn" id="shortMonthName"><a name="shortMonthName"></a><code>[static] </code><span class="type"><a href="qstring.html">QString</a></span> QDate::<span class="name">shortMonthName</span>(<span class="type">int</span> <i>month</i>, <span class="type"><a href="qdate.html#MonthNameType-enum">QDate::MonthNameType</a></span> <i>type</i> = DateFormat)</h3> <p>This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.</p> <p>Returns the short name of the <i>month</i> for the representation specified by <i>type</i>.</p> <p>The months are enumerated using the following convention:</p> <ul> <li>1 = "Jan"</li> <li>2 = "Feb"</li> <li>3 = "Mar"</li> <li>4 = "Apr"</li> <li>5 = "May"</li> <li>6 = "Jun"</li> <li>7 = "Jul"</li> <li>8 = "Aug"</li> <li>9 = "Sep"</li> <li>10 = "Oct"</li> <li>11 = "Nov"</li> <li>12 = "Dec"</li> </ul> <p>The month names will be localized according to the system's locale settings, i.e. using <a href="qlocale.html#system">QLocale::system</a>().</p> <p>Returns an empty string if the date is invalid.</p> <p>This function was introduced in Qt 4.5.</p> <p><b>See also </b><a href="qdate.html#toString">toString</a>(), <a href="qdate-obsolete.html#longMonthName">longMonthName</a>(), <a href="qdate-obsolete.html#shortDayName">shortDayName</a>(), and <a href="qdate-obsolete.html#longDayName">longDayName</a>().</p> <!-- @@@shortMonthName --> </div> </div> </div> </div> </div> <div class="footer"> <p> <acronym title="Copyright">©</acronym> 2019 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners.<br/> The documentation provided herein is licensed under the terms of the <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation License version 1.3</a> as published by the Free Software Foundation.<br/> Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners. </p> </div> </body> </html>