<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									macOS/Linux - How to change Modified of Created date and time of a file - MacOS X Software				            </title>
            <link>https://www.tweaking4all.com/forum/macos-x-software/macos-linux-how-to-change-modified-of-created-date-and-time-of-a-file/</link>
            <description>Tweaking4All.com Discussion Board</description>
            <language>en-US</language>
            <lastBuildDate>Tue, 21 Jul 2026 01:51:14 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>macOS/Linux - How to change Modified of Created date and time of a file</title>
                        <link>https://www.tweaking4all.com/forum/macos-x-software/macos-linux-how-to-change-modified-of-created-date-and-time-of-a-file/#post-3206</link>
                        <pubDate>Tue, 09 Mar 2021 13:50:57 +0000</pubDate>
                        <description><![CDATA[Sometimes you need to modify the &quot;modified&quot; or &quot;created&quot; date of a file.Terminal offers a way to do this with the &quot;touch&quot; command.
For this we need to write the date and time in a specific ...]]></description>
                        <content:encoded><![CDATA[<p>Sometimes you need to modify the "modified" or "created" date of a file.<br />Terminal offers a way to do this with the "touch" command.</p>
<p>For this we need to write the date and time in a specific format:</p>
<pre contenteditable="false">YYYYMMDDhhmm</pre>
<p> </p>
<p>Where the characters need to be replaced with: </p>
<pre contenteditable="false">YYYY   — Year in 4 digits
MM     — Mont in 2 digits (01 to 12)
DD     — Day of the month, in 2 digits, from 01 to 31
hh     — Hour of the day, in 2 digits, 24 hour notation, from 00 to 23
mm     — Minutes, in 2 digits, from 00 to 59</pre>
<p> </p>
<p><span style="color: #ff0000"><strong>To change the modified date:</strong></span></p>
<pre contenteditable="false">touch -mt 202103091446 MyFile</pre>
<p>This will change the modified date of "MyFile" to 2021, March 9th, 14:46 (or 2:46 PM).</p>
<p><span style="color: #ff0000"><strong>To change the created date:</strong></span></p>
<pre contenteditable="false">touch -t 202103091446 MyFile</pre>
<p>This will change the creation date of "MyFile" to 2021, March 9th, 14:46 (or 2:46 PM).</p>
<p> </p>]]></content:encoded>
						                            <category domain="https://www.tweaking4all.com/forum/macos-x-software/">MacOS X Software</category>                        <dc:creator>Hans</dc:creator>
                        <guid isPermaLink="true">https://www.tweaking4all.com/forum/macos-x-software/macos-linux-how-to-change-modified-of-created-date-and-time-of-a-file/#post-3206</guid>
                    </item>
							        </channel>
        </rss>
		