<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[New to Notepad++ and trying to convert 12 hour time to 24]]></title><description><![CDATA[<p dir="auto">Good Afternoon</p>
<p dir="auto">I am new to Notepad++ and I am trying to write a script to convert 12 hour time into 24 hour time format. Below is the data string that I have to convert:</p>
<p dir="auto">01-May-26 12:15:00 AM,689.1,WESTHAMPTON_HALL_Elec</p>
<p dir="auto">This is just one string out of 600+ but I ultimately need them all to read like:</p>
<p dir="auto">5/1/2026 00:15,689.1,WESTHAMPTON_HALL_Elec</p>
<p dir="auto">Any assistance is much appreciated!</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/27526/new-to-notepad-and-trying-to-convert-12-hour-time-to-24</link><generator>RSS for Node</generator><lastBuildDate>Fri, 08 May 2026 22:37:14 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/27526.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 08 May 2026 19:37:03 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to New to Notepad++ and trying to convert 12 hour time to 24 on Fri, 08 May 2026 21:27:57 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/matt-long" aria-label="Profile: Matt-Long">@<bdi>Matt-Long</bdi></a> <a href="/post/105419">said</a>:<br />
I am new to Notepad++ and I am trying to write a script to convert 12 hour time into 24 hour time format. Below is the data string that I have to convert:</p>
<p dir="auto">01-May-26 12:15:00 AM,689.1,WESTHAMPTON_HALL_Elec</p>
<p dir="auto">This is just one string out of 600+ but I ultimately need them all to read like:</p>
<p dir="auto">5/1/2026 00:15,689.1,WESTHAMPTON_HALL_Elec</p>
</blockquote>
<p dir="auto">The <a href="https://coises.github.io/ColumnsPlusPlus/help.htm#timestamps" rel="nofollow ugc">Timestamps…</a> command in the Columns++ plugin can help with this.</p>
<p dir="auto">For conversion you want, you would select <strong>day-month-year</strong> in the <strong>From date and time</strong> section, then select <strong>Custom</strong> in the <strong>To date and time</strong> section, enter <strong><code>M/d/yyyy HH:mm</code></strong> as the custom picture, check <strong>Overwrite selection</strong>, then click <strong>To Date/Time</strong> to perform the conversion.</p>
<p dir="auto">To use this, you need to have all the timestamps lined up in a column and make a column selection. If your document has a series of lines like the example you gave with all three-character months, you can select it as is.</p>
<p dir="auto">If you have months spelled out, so that the right edge of the column doesn’t line up, you can use a regular expression to change the first comma to a tab, enable <strong>Elastic tabstops</strong> on the Columns++ menu, and then you can select the column, perform the conversion, and use another regular expression to convert the tabs back to commas. (Alternatively, if this is a CSV file, you can use the <a href="https://coises.github.io/ColumnsPlusPlus/help.htm#conversion" rel="nofollow ugc">Conversion</a> functions in Columns++ to convert from comma separated values to tabs and back again instead of using regular expressions.)</p>
<p dir="auto">If the timestamps don’t occur in contiguous column at all, we might have to devise a more inventive method of getting them into a column selection if you want to use Columns++ to do the conversion.</p>
<p dir="auto">For an explanation of how to make a column selection, see:<br />
<a href="https://npp-user-manual.org/docs/editing/#entering-column-mode" rel="nofollow ugc">https://npp-user-manual.org/docs/editing/#entering-column-mode</a></p>
<p dir="auto">For an explanation of how to install a plugin from the plugins list (Columns++ is in the list), see:<br />
<a href="https://npp-user-manual.org/docs/plugins/#install-using-plugins-admin" rel="nofollow ugc">https://npp-user-manual.org/docs/plugins/#install-using-plugins-admin</a></p>
]]></description><link>https://community.notepad-plus-plus.org/post/105420</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/105420</guid><dc:creator><![CDATA[Coises]]></dc:creator><pubDate>Fri, 08 May 2026 21:27:57 GMT</pubDate></item></channel></rss>