<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Helvetica;
panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Verdana;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
{mso-style-name:msonormal;
mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
span.EmailStyle19
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">I see that now in the help, that is definitely better than my solution. Also using “1” instead of “2” will give the abbreviated day of the week. I will be using that moving forward when needed.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks Bill<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Josh<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> WILLIAM LUCCA <wlucca@prodigy.net> <br>
<b>Sent:</b> Thursday, May 17, 2018 8:44 AM<br>
<b>To:</b> Josh Reader <josh.reader@mercuryelectronics.com>; filepro-list@lists.celestial.com<br>
<b>Subject:</b> Re: Day of the week<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div id="yui_3_16_0_ym19_1_1526560349686_37802">
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt;font-family:"Verdana",sans-serif;color:black">An even easier way would be to say:<o:p></o:p></span></p>
</div>
<div id="yui_3_16_0_ym19_1_1526560349686_37802">
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt;font-family:"Verdana",sans-serif;color:black"><o:p> </o:p></span></p>
</div>
<div id="yui_3_16_0_ym19_1_1526560349686_37802">
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt;font-family:"Verdana",sans-serif;color:black">dw=dow(date field,"2")<o:p></o:p></span></p>
</div>
<div id="yui_3_16_0_ym19_1_1526560349686_37802">
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt;font-family:"Verdana",sans-serif;color:black"><o:p> </o:p></span></p>
</div>
<div id="yui_3_16_0_ym19_1_1526560349686_37802">
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt;font-family:"Verdana",sans-serif;color:black">Which returns the full name of the day of the week (i.e. Sunday, Monday, etc.)<o:p></o:p></span></p>
</div>
<div id="yui_3_16_0_ym19_1_1526560349686_37802">
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt;font-family:"Verdana",sans-serif;color:black"><o:p> </o:p></span></p>
</div>
<div id="yui_3_16_0_ym19_1_1526560349686_37802">
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt;font-family:"Verdana",sans-serif;color:black">Bill Lucca<o:p></o:p></span></p>
</div>
<div id="yui_3_16_0_ym19_1_1526560349686_37802">
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt;font-family:"Verdana",sans-serif;color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt;background:white"><span style="font-size:12.0pt;font-family:"Verdana",sans-serif;color:black"><o:p> </o:p></span></p>
</div>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black">On Thursday, May 17, 2018 8:38 AM, Josh Reader via Filepro-list <<a href="mailto:filepro-list@lists.celestial.com">filepro-list@lists.celestial.com</a>>
wrote:</span><span style="font-size:12.0pt;font-family:"Helvetica",sans-serif;color:black"><o:p></o:p></span></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt;background:white"><span style="font-size:12.0pt;font-family:"Helvetica",sans-serif;color:black"><o:p> </o:p></span></p>
<div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt;font-family:"Helvetica",sans-serif;color:black">Hi Wayne,<br>
<br>
I just do something like this:<br>
<br>
dw=DOW(date field)<br>
<br>
That returns a number with number 1 being Sunday, 2 is Monday, 3 is Tuesday, etc. Then have lines of code for each of those numbers to assign the day. For instance:<br>
<br>
If: dw eq "1"<br>
Then: dy="Sunday"<br>
<br>
If: dw eq "2"<br>
Then: dy="Monday"<br>
<br>
If: dw eq "3"<br>
Then: dy="Tuesday"<br>
<br>
So on and so forth.<br>
<br>
Josh<br>
<br>
-----Original Message-----<br>
From: Filepro-list <filepro-list-bounces+josh.reader=<a href="mailto:mercuryelectronics.com@lists.celestial.com">mercuryelectronics.com@lists.celestial.com</a>> On Behalf Of Wayne Smith via Filepro-list<br>
Sent: Thursday, May 17, 2018 8:18 AM<br>
To: filePro Mailing List <<a href="mailto:filepro-list@lists.celestial.com">filepro-list@lists.celestial.com</a>><br>
Subject: Day of the week<br>
<br>
Home from Hospital and pain med,s are dulling my otherwise sharp grasp of the power of filePro. Some humor and help is in order.<br>
<br>
This morning I tackled showing the DAY of the week from a 8 long mdy/ field. Then converting same to the commonly accepted MON, TUE, Etc etc.<br>
<br>
Have merci on me fairlite, adu<br>
<br>
Thanks ahead of time you genius's out there.....<br>
<br>
--<br>
Wayne Smith<br>
Port Orange, Florida<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://mailman.celestial.com/pipermail/filepro-list/attachments/20180517/099a813a/attachment.html" target="_blank">http://mailman.celestial.com/pipermail/filepro-list/attachments/20180517/099a813a/attachment.html</a>><br>
_______________________________________________<br>
Filepro-list mailing list<br>
<a href="mailto:Filepro-list@lists.celestial.com">Filepro-list@lists.celestial.com</a><br>
Subscribe/Unsubscribe/Subscription Changes <a href="http://mailman.celestial.com/mailman/listinfo/filepro-list" target="_blank">
http://mailman.celestial.com/mailman/listinfo/filepro-list</a><o:p></o:p></span></p>
<div id="yqtfd48080">
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt;font-family:"Helvetica",sans-serif;color:black"><br>
_______________________________________________<br>
Filepro-list mailing list<br>
<a href="mailto:Filepro-list@lists.celestial.com">Filepro-list@lists.celestial.com</a><br>
Subscribe/Unsubscribe/Subscription Changes<br>
<a href="http://mailman.celestial.com/mailman/listinfo/filepro-list" target="_blank">http://mailman.celestial.com/mailman/listinfo/filepro-list</a><o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt;background:white"><span style="font-size:12.0pt;font-family:"Helvetica",sans-serif;color:black"><o:p> </o:p></span></p>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>