<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Gravity Support Forums Topic: Date Field Display Day of The Week.</title>
		<link>https://legacy.forums.gravityhelp.com/topic/date-field-display-day-of-the-week</link>
		<description>Gravity Support Forums Topic: Date Field Display Day of The Week.</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 07:14:37 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>https://legacy.forums.gravityhelp.com/search.php</link>
		</textInput>
		<atom:link href="https://legacy.forums.gravityhelp.com/rss/topic/date-field-display-day-of-the-week" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Date Field Display Day of The Week."</title>
			<link>https://legacy.forums.gravityhelp.com/topic/date-field-display-day-of-the-week#post-71615</link>
			<pubDate>Sun, 19 Aug 2012 14:45:06 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">71615@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Glad that worked out for you edde.  Thanks for the update.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>edde on "Date Field Display Day of The Week."</title>
			<link>https://legacy.forums.gravityhelp.com/topic/date-field-display-day-of-the-week#post-71598</link>
			<pubDate>Sun, 19 Aug 2012 06:13:24 +0000</pubDate>
			<dc:creator>edde</dc:creator>
			<guid isPermaLink="false">71598@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Actually, the whole solution was there. Thanks David! &#60;/p&#62;
&#60;p&#62;I ended up adding some lines to replace the English DoW by Dutch ones - see below.&#60;br /&#62;
Using setlocale(LC_ALL, 'nl_NL'); didn't do the translation trick I needed. &#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function customdate_func( $atts ) {
  extract( shortcode_atts( array(
    &#38;#39;date&#38;#39; =&#38;gt; &#38;#39;&#38;#39;,
  ), $atts ) );

  $thedate = $date;
  $weekday = date(&#38;#39;l&#38;#39;, strtotime($thedate));
  $english = array(&#38;quot;Monday&#38;quot;, &#38;quot;Tuesday&#38;quot;, &#38;quot;Wednesday&#38;quot;, &#38;quot;Thursday&#38;quot;, &#38;quot;Friday&#38;quot;, &#38;quot;Saturday&#38;quot;, &#38;quot;Sunday&#38;quot;);
  $dutch   = array(&#38;quot;maandag&#38;quot;, &#38;quot;dinsdag&#38;quot;, &#38;quot;woensdag&#38;quot;, &#38;quot;donderdag&#38;quot;, &#38;quot;vrijdag&#38;quot;, &#38;quot;zaterdag&#38;quot;, &#38;quot;zondag&#38;quot;);
  $weekday = str_replace($english, $dutch, $weekday);
  $thedate = $thedate . &#38;#39; - &#38;#39; . $weekday;
  return $thedate;
}
add_shortcode( &#38;#39;customdate&#38;#39;, &#38;#39;customdate_func&#38;#39; );&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>edde on "Date Field Display Day of The Week."</title>
			<link>https://legacy.forums.gravityhelp.com/topic/date-field-display-day-of-the-week#post-71530</link>
			<pubDate>Sat, 18 Aug 2012 04:53:43 +0000</pubDate>
			<dc:creator>edde</dc:creator>
			<guid isPermaLink="false">71530@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Wow! Exactly what I was looking for. The Day of the Week seems to be popular. ;-)&#60;/p&#62;
&#60;p&#62;@Mike: did you succeed in adding the DoW to the notification e-mails? Any chance on sharing? :-)&#60;/p&#62;
&#60;p&#62;Thanks,&#60;br /&#62;
 Edde
&#60;/p&#62;</description>
		</item>
		<item>
			<title>scc on "Date Field Display Day of The Week."</title>
			<link>https://legacy.forums.gravityhelp.com/topic/date-field-display-day-of-the-week#post-55710</link>
			<pubDate>Wed, 18 Apr 2012 14:26:19 +0000</pubDate>
			<dc:creator>scc</dc:creator>
			<guid isPermaLink="false">55710@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Sweet thanks for the info, this will help a ton (my users thank you too)&#60;/p&#62;
&#60;p&#62;-Mike
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Peralty on "Date Field Display Day of The Week."</title>
			<link>https://legacy.forums.gravityhelp.com/topic/date-field-display-day-of-the-week#post-55705</link>
			<pubDate>Wed, 18 Apr 2012 13:48:44 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">55705@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Here is an example (for EXAMPLE purposes only) of what you should be looking to add to your functions.php file.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function customdate_func( $atts ) {
	extract( shortcode_atts( array(
		&#38;#39;date&#38;#39; =&#38;gt; &#38;#39;&#38;#39;,
	), $atts ) );

     $thedate = $date;
     $weekday = date(&#38;#39;l&#38;#39;, strtotime($thedate));
     $thedate = $thedate . &#38;#39; - &#38;#39; . $weekday;
     return $thedate;	

}
add_shortcode( &#38;#39;customdate&#38;#39;, &#38;#39;customdate_func&#38;#39; );&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;You will need to customize it for your exact needs, but this would basically make it so that something like [customdate date={Field Merge Tag:1}] would return XX/XX/XXXX - WEEKDAY. &#60;/p&#62;
&#60;p&#62;We can't support this code, nor really customize it for your specific needs, but hopefully it will work as a shortcut in achieving your goals.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Peralty on "Date Field Display Day of The Week."</title>
			<link>https://legacy.forums.gravityhelp.com/topic/date-field-display-day-of-the-week#post-55704</link>
			<pubDate>Wed, 18 Apr 2012 13:28:18 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">55704@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Okay, so it is a bit more complex than I thought, but here's the gist of what you need to do:&#60;/p&#62;
&#60;p&#62;Note: you can't use the all fields merge tag anymore to be able to make notifications. You'll have to add in each merge tag separately to make up your notification message.&#60;/p&#62;
&#60;p&#62;Create a custom shortcode - &#60;a href=&#34;http://codex.wordpress.org/Shortcode_API&#34; rel=&#34;nofollow&#34;&#62;http://codex.wordpress.org/Shortcode_API&#60;/a&#62;&#60;br /&#62;
This short code will do the heavy lifting. You'll want to use a merge tag to pass the date to your shortcode and your shortcode will pass back the day of the week.&#60;/p&#62;
&#60;p&#62;Your merge tag in your notification will look something like:&#60;br /&#62;
[customdate date={My Date Field:1}]&#60;/p&#62;
&#60;p&#62;Your shortcode will use PHP's date function to figure out the day of the week - &#60;a href=&#34;http://php.net/manual/en/function.date.php&#34; rel=&#34;nofollow&#34;&#62;http://php.net/manual/en/function.date.php&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;And then it will pass that value back to your notification and should be then properly included in the e-mail. &#60;/p&#62;
&#60;p&#62;Let me know if this makes sense and helps.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>scc on "Date Field Display Day of The Week."</title>
			<link>https://legacy.forums.gravityhelp.com/topic/date-field-display-day-of-the-week#post-55695</link>
			<pubDate>Wed, 18 Apr 2012 13:00:34 +0000</pubDate>
			<dc:creator>scc</dc:creator>
			<guid isPermaLink="false">55695@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I do want to tackle this and any info you can provide would be helpful.&#60;/p&#62;
&#60;p&#62;Thanks.&#60;br /&#62;
-Mike
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Peralty on "Date Field Display Day of The Week."</title>
			<link>https://legacy.forums.gravityhelp.com/topic/date-field-display-day-of-the-week#post-55694</link>
			<pubDate>Wed, 18 Apr 2012 12:58:10 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">55694@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;There is no built-in way to do this. You would have to use a hook, grab the date selected, and using PHP's date function find out the day of the week and then append that to the notification e-mail details. If you still want to tackle this, I can see about giving you some details on where you might want to start.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>scc on "Date Field Display Day of The Week."</title>
			<link>https://legacy.forums.gravityhelp.com/topic/date-field-display-day-of-the-week#post-55681</link>
			<pubDate>Wed, 18 Apr 2012 11:42:58 +0000</pubDate>
			<dc:creator>scc</dc:creator>
			<guid isPermaLink="false">55681@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I have a user that would like the day of the week to be displayed on the notification e-mails generated from the date field to show the day of the week.  so...&#60;/p&#62;
&#60;p&#62;Event End Date&#60;br /&#62;
04/25/2012 - Wednesday&#60;/p&#62;
&#60;p&#62;... or something similar.  &#60;/p&#62;
&#60;p&#62;Is there an output template for the e-mail that I can modify to get the day of the week from the dat and display it in the notification e-mails or an easier way that I am not finding?&#60;/p&#62;
&#60;p&#62;Thanks.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
