<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2-ppt DokuWiki" -->
<?xml-stylesheet href="https://www.sqlines.com/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="https://www.sqlines.com/feed.php">
        <title>SQLines Tools mysql-to-db2</title>
        <description></description>
        <link>https://www.sqlines.com/</link>
        <image rdf:resource="https://www.sqlines.com/lib/images/favicon.ico" />
       <dc:date>2026-06-10T09:17:21+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://www.sqlines.com/mysql-to-db2/date_format?rev=1360856870&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="https://www.sqlines.com/lib/images/favicon.ico">
        <title>SQLines Tools</title>
        <link>https://www.sqlines.com/</link>
        <url>https://www.sqlines.com/lib/images/favicon.ico</url>
    </image>
    <item rdf:about="https://www.sqlines.com/mysql-to-db2/date_format?rev=1360856870&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-14T15:47:50+00:00</dc:date>
        <title>DATE_FORMAT - Convert Date to String - MySQL to IBM DB2 Migration</title>
        <link>https://www.sqlines.com/mysql-to-db2/date_format?rev=1360856870&amp;do=diff</link>
        <description>In MySQL, DATE_FORMAT function converts a DATE or DATETIME value to string using the specified format. In DB2, you can use VARCHAR_FORMAT function.

Note that the DATE_FORMAT and VARCHAR_FORMAT use different format strings. 

MySQL:


  -- Convert the current date to YYYYMM format
  SELECT DATE_FORMAT(NOW(), '%Y%m');
  # 201302</description>
    </item>
</rdf:RDF>
