<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:media="http://search.yahoo.com/mrss/">
<channel>
<title>ClipboardFusion RSS: DateTime language</title>
<atom:link href="https://www.clipboardfusion.com/Discussions/RSS/?TopicID=7b1e63c0-eb6f-49b0-ac9a-0946995dd69f" rel="self" type="application/rss+xml" />
<link>https://www.clipboardfusion.com/Discussions/RSS/?TopicID=7b1e63c0-eb6f-49b0-ac9a-0946995dd69f</link>
<description>ClipboardFusion RSS: DateTime language</description>
<lastBuildDate>Tue, 15 Sep 2026 10:32:42 GMT</lastBuildDate>
<language>en</language>
<sy:updatePeriod>hourly</sy:updatePeriod>
<sy:updateFrequency>1</sy:updateFrequency>
<generator>https://www.clipboardfusion.com/Discussions/RSS/?TopicID=7b1e63c0-eb6f-49b0-ac9a-0946995dd69f</generator>
<item>
<title>RE: DateTime language</title>
<link>https://www.clipboardfusion.com/Discussions/View/datetime-language/?ID=7b1e63c0-eb6f-49b0-ac9a-0946995dd69f#2</link>
<pubDate>Tue, 03 Dec 2019 03:22:40 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.clipboardfusion.com/Discussions/View/datetime-language/?ID=7b1e63c0-eb6f-49b0-ac9a-0946995dd69f#2</guid>
<category>ClipboardFusion</category>
<description><![CDATA[First of all, you need to add System.Globalization namespace to define CultureInfo. Then into the formatted string you specify CultureInfo.InvariantCulture
Code
Copy
Select All
using System;&#xA;using System.Collections.Generic;&#xA;using System.Globalization;&#xA;&#xA;public static class Cli...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
First of all, you need to add <b>System.Globalization</b> namespace to define CultureInfo. Then into the formatted string you specify CultureInfo.InvariantCulture<br/>
<div class="col-md-12 BoxWrap"><div class="Box table-responsive"><a name="code" style="width:0; height:0;"></a><h2 class="TableTitle" style="border:0"><div class="TableTitleText">Code</div><div class="TitleButtons"><div class="TableTitleButton"><a href="#" onclick="return false;" data-clipboard-target="#code01a0a4a046f6773ab1085fb628f83304" class="ClipboardCopyControl"><img src="https://www.clipboardfusion.com/MediaCommon/SVGs/FontAwesome/clone.blue.svg" style="box-sizing:border-box;position:relative;overflow:hidden;width:auto;max-width:16px;height:16px;" /><span class="Text">Copy</span></a></div><div class="TableTitleButton"><a href="#" onclick="bfs.util.codeEditorSelectAll('code01a0a4a046f6773ab1085fb628f83304Js'); return false;"><img src="https://www.clipboardfusion.com/MediaCommon/SVGs/FontAwesome/square-check.blue.svg" style="box-sizing:border-box;position:relative;overflow:hidden;width:auto;max-width:16px;height:16px;" /><span class="Text">Select All</span></a></div></div></h2><div class="TableTitleContent table-responsive"><div class="AceEditorWrapper" style="border-top:solid 1px var(--color-default-border);padding:0"><pre id="code01a0a4a046f6773ab1085fb628f83304Js" name="code01a0a4a046f6773ab1085fb628f83304Js" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%;min-height:75px">using System;&#xA;using System.Collections.Generic;&#xA;using System.Globalization;&#xA;&#xA;public static class ClipboardFusionHelper&#xA;{&#xA;    public static string ProcessText(string text)&#xA;    {&#xA;        var secondsToAdd = 1;&#xA;        var currentDateTime = DateTime.Now;&#xA;        var newDate = currentDateTime.AddSeconds(secondsToAdd);&#xA;        var time = newDate.ToString(&quot;HH:mm:ss dd MMMM yyyy&quot;, CultureInfo.InvariantCulture);&#xA;        BFS.Clipboard.SetText(time);&#xA;        return null;&#xA;    }&#xA;}</pre><textarea id="code01a0a4a046f6773ab1085fb628f83304" name="code01a0a4a046f6773ab1085fb628f83304" style="position:absolute;top:0;left:-999999px;width:1px;height:1px"></textarea></div>
</div></div></div>
</div>
]]></content:encoded>
</item>
<item>
<title>DateTime language</title>
<link>https://www.clipboardfusion.com/Discussions/View/datetime-language/?ID=7b1e63c0-eb6f-49b0-ac9a-0946995dd69f</link>
<pubDate>Mon, 02 Dec 2019 14:43:53 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.clipboardfusion.com/Discussions/View/datetime-language/?ID=7b1e63c0-eb6f-49b0-ac9a-0946995dd69f</guid>
<category>ClipboardFusion</category>
<description><![CDATA[Hi.
I'm using a macro to output a date and the current time +1 second, but the place that I send it to needs the format to be in english, and not Norwegian.
I'm using the following code:
Code
Copy
Select All
int secondsToAdd = 1;&#xA;                DateTime currentDateTime = DateTime.Now;&...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Hi.<br/>
I'm using a macro to output a date and the current time +1 second, but the place that I send it to needs the format to be in english, and not Norwegian.<br/>
<br/>
I'm using the following code:<br/>
<div class="col-md-12 BoxWrap"><div class="Box table-responsive"><a name="code" style="width:0; height:0;"></a><h2 class="TableTitle" style="border:0"><div class="TableTitleText">Code</div><div class="TitleButtons"><div class="TableTitleButton"><a href="#" onclick="return false;" data-clipboard-target="#code01a0a4a0470274db87133a4f54f1b339" class="ClipboardCopyControl"><img src="https://www.clipboardfusion.com/MediaCommon/SVGs/FontAwesome/clone.blue.svg" style="box-sizing:border-box;position:relative;overflow:hidden;width:auto;max-width:16px;height:16px;" /><span class="Text">Copy</span></a></div><div class="TableTitleButton"><a href="#" onclick="bfs.util.codeEditorSelectAll('code01a0a4a0470274db87133a4f54f1b339Js'); return false;"><img src="https://www.clipboardfusion.com/MediaCommon/SVGs/FontAwesome/square-check.blue.svg" style="box-sizing:border-box;position:relative;overflow:hidden;width:auto;max-width:16px;height:16px;" /><span class="Text">Select All</span></a></div></div></h2><div class="TableTitleContent table-responsive"><div class="AceEditorWrapper" style="border-top:solid 1px var(--color-default-border);padding:0"><pre id="code01a0a4a0470274db87133a4f54f1b339Js" name="code01a0a4a0470274db87133a4f54f1b339Js" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%;min-height:75px">int secondsToAdd = 1;&#xA;                DateTime currentDateTime = DateTime.Now;&#xA;&#xA;                DateTime newDate = currentDateTime.AddSeconds(secondsToAdd);&#xA;                 text = newDate.ToString(&quot;HH:mm:ss dd MMMM yyyy&quot;);&#xA;        BFS.Clipboard.SetText(text);</pre><textarea id="code01a0a4a0470274db87133a4f54f1b339" name="code01a0a4a0470274db87133a4f54f1b339" style="position:absolute;top:0;left:-999999px;width:1px;height:1px"></textarea></div>
</div></div></div><br/>
        <br/>
When I paste it it outputs Desember, instead of December.<br/>
I just noticed the issue as I started using this in November, which is spelled the same way in both languages.<br/>
Is there a way I can make it use english form of the word?<br/>
<br/>
My googling found some info about CultureInfo but it didn't accept it.
</div>
]]></content:encoded>
</item>
</channel>
</rss>