<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Excel Date Reading Issue: Appian Interpreting &amp;quot;2026-07-17&amp;quot; as Mathematical Expression Instead of Date String</title><link>https://community.appian.com/discussions/f/data/39521/excel-date-reading-issue-appian-interpreting-2026-07-17-as-mathematical-expression-instead-of-date-string</link><description>Hello, 
 I&amp;#39;m facing a challenging issue when reading dates from Excel files using readexcelsheetpaging() . The problem occurs when Excel cells contain dates in custom format that appear as values like &amp;quot;2026-07-17&amp;quot;. 
 The Problem: When Appian reads these</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Excel Date Reading Issue: Appian Interpreting "2026-07-17" as Mathematical Expression Instead of Date String</title><link>https://community.appian.com/thread/150428?ContentTypeID=1</link><pubDate>Mon, 28 Jul 2025 08:19:22 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:67dca8ab-3820-4c05-8626-aad4652bfa30</guid><dc:creator>Alessandro Tolli</dc:creator><description>&lt;p&gt;Sure thing.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;1. I created a rule:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;if(
a!isNotNullOrEmpty(ri!dateTimeText),
date(
tointeger(left(left(ri!dateTimeText, 10), 4)),
tointeger(mid(left(ri!dateTimeText, 10), 6, 2)),
tointeger(right(left(ri!dateTimeText, 10), 2))
),
null
)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;then I set the ri!dateTimeText as Text,&lt;/p&gt;
&lt;p&gt;then I used the type! passing the whole thing:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!forEach(
items: local!res,
expression:
&amp;#39;type!{urn:com:appian:types:AD}AD_SAMPLE&amp;#39;(
id: null,
dateinput: rule!convertDateTimeToDate(dateTimeText: fv!item[14]),
datereview: rule!convertDateTimeToDate(dateTimeText: fv!item[15])
))&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Now the dates are correctly read as Date type. I was just passing the information as a fv!item[17] and so on, using a rule input set as text bypassed the math subtraction on the cell and thus I was able to split the information using mid and left fx.&amp;nbsp; Thank you all for your replies&amp;nbsp;&lt;span class="emoticon" data-url="https://community.appian.com/cfs-file/__key/system/emoji/1f607.svg" title="Innocent"&gt;&amp;#x1f607;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Excel Date Reading Issue: Appian Interpreting "2026-07-17" as Mathematical Expression Instead of Date String</title><link>https://community.appian.com/thread/150378?ContentTypeID=1</link><pubDate>Fri, 25 Jul 2025 15:08:27 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9ed35c01-3709-47f0-b0eb-04c35e8b4848</guid><dc:creator>Shubham Aware</dc:creator><description>&lt;p&gt;Great to know that!!&lt;br /&gt;If possible could you post your expression here.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Excel Date Reading Issue: Appian Interpreting "2026-07-17" as Mathematical Expression Instead of Date String</title><link>https://community.appian.com/thread/150376?ContentTypeID=1</link><pubDate>Fri, 25 Jul 2025 15:06:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c38d6ff4-0195-47bf-b180-49de9ac1a8c8</guid><dc:creator>Alessandro Tolli</dc:creator><description>&lt;p&gt;thank you both, i managed to find a solution. I passed as input the given dates and now it seems to work if I&amp;nbsp;set the rule!input type to Text (although on Excel the format is Custom). Having a text input i can use the left/mid fx to extract the date from it&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Excel Date Reading Issue: Appian Interpreting "2026-07-17" as Mathematical Expression Instead of Date String</title><link>https://community.appian.com/thread/150360?ContentTypeID=1</link><pubDate>Fri, 25 Jul 2025 12:04:18 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b4b49dbf-3232-4830-9724-29ff4dae30c8</guid><dc:creator>Shubham Aware</dc:creator><description>&lt;p&gt;Could you please clarify how you receive or generate the Excel file containing the dates?&lt;br /&gt;&lt;br /&gt;Is the Excel file created or exported automatically from another system, or do you receive it via email from someone else?&lt;br /&gt;Do you have direct control or access to modify the format or content of the Excel file at its source before importing it into Appian?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Excel Date Reading Issue: Appian Interpreting "2026-07-17" as Mathematical Expression Instead of Date String</title><link>https://community.appian.com/thread/150359?ContentTypeID=1</link><pubDate>Fri, 25 Jul 2025 11:23:25 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1179567a-cecd-4fdc-85c5-480369787d32</guid><dc:creator>Harsha Sharma</dc:creator><description>&lt;p&gt;Ideally it should be a Date column in excel. It should not be text as text will indeed change it to a number. If its a text then it should be within quotes (&amp;quot;&amp;quot;).&amp;nbsp; If you can make it date column in excel then read the function should read it as date as well. E.g. I uploaded this excel where first is &amp;#39;Genera&amp;#39; and in quotes while other one is in &amp;#39;Date&amp;#39;&amp;#39; type column. You can see I am able to get proper output from both of them. So if you can change in Excel have the date column configuration applied to your columns where applicable.&amp;nbsp;&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/16/pastedimage1753442516268v1.png" alt=" " /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/16/pastedimage1753442601175v2.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Excel Date Reading Issue: Appian Interpreting "2026-07-17" as Mathematical Expression Instead of Date String</title><link>https://community.appian.com/thread/150355?ContentTypeID=1</link><pubDate>Fri, 25 Jul 2025 10:49:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b5be2dd6-97d7-4950-b3a5-3c33883e2aa9</guid><dc:creator>Alessandro Tolli</dc:creator><description>&lt;p&gt;&lt;span&gt;If I open the Excel and set the format to text I&amp;#39;ll go from &amp;quot;2025-07-11&amp;quot; to something like 44698. So I guess my only choice is, once I&amp;#39;ve the Excel locally, find and replace the &amp;quot;-&amp;quot; element into something else so that the cell is read as text and not a math function&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Excel Date Reading Issue: Appian Interpreting "2026-07-17" as Mathematical Expression Instead of Date String</title><link>https://community.appian.com/thread/150354?ContentTypeID=1</link><pubDate>Fri, 25 Jul 2025 10:49:21 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d134d7e8-34c5-4f71-989f-4c9ffc19c48d</guid><dc:creator>Alessandro Tolli</dc:creator><description>&lt;p&gt;thanks, but I cannot do that because it&amp;#39;s not a Text format on excel. I&amp;#39;ve this excel where data is copy pasted (ignoring the cell format) and the format is custom, if I open the Excel and set the format to text, as you mentioned, I&amp;#39;ll go from &amp;quot;2025-07-11&amp;quot; to something like 44698. So I guess my only choice is, once I&amp;#39;ve the Excel locally, find and replace the &amp;quot;-&amp;quot; element into something else so that the cell is read as text and not a math function&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Excel Date Reading Issue: Appian Interpreting "2026-07-17" as Mathematical Expression Instead of Date String</title><link>https://community.appian.com/thread/150353?ContentTypeID=1</link><pubDate>Fri, 25 Jul 2025 10:11:14 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:fa0c1d8d-b550-4738-a179-72cede0b41b5</guid><dc:creator>Shubham Aware</dc:creator><description>&lt;p&gt;Ensure Excel date columns are formatted as Text before import.&lt;br /&gt;If you get only numbers like 2008, you cannot reconstruct the original date in Appian.&lt;br /&gt;&lt;br /&gt;Change Excel Column Format to Text&lt;br /&gt;1)Select the column or cells you want to convert.&lt;br /&gt;2)Right-click on the selected area, then choose Format Cells...&lt;br /&gt;3)In the Format Cells dialog box, go to the Number tab.&lt;br /&gt;4)Select Text as the category.&lt;br /&gt;5)Click OK.&lt;/p&gt;
&lt;p&gt;Now, any new input in those cells will be treated as text strings.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Excel Date Reading Issue: Appian Interpreting "2026-07-17" as Mathematical Expression Instead of Date String</title><link>https://community.appian.com/thread/150352?ContentTypeID=1</link><pubDate>Fri, 25 Jul 2025 10:05:51 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8d3bf039-1a2a-4bd9-a53d-195deac9ddec</guid><dc:creator>Harsha Sharma</dc:creator><description>&lt;p&gt;oh okay! We cannot decipher date from 2008 because 2008 can be 2026-07-11 as well as&amp;nbsp;2025-11-6. We need to read the data as is from excel itself then transform if needed.&amp;nbsp;&lt;/p&gt;
[quote userid="298860" url="~/discussions/f/data/39521/excel-date-reading-issue-appian-interpreting-2026-07-17-as-mathematical-expression-instead-of-date-string"]Excel cells contain dates with custom formatting (cannot be changed on Excel side)[/quote]
&lt;p&gt;When you download the excel then can you see data as&amp;nbsp;&lt;span&gt;&amp;quot;2026-07-17&amp;quot;&amp;nbsp; ? Also as you mentioned cannot be changed on excel side, can you check the column type in excel which stores these date if its Number or General etc.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/16/pastedimage1753437913737v1.png" /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Excel Date Reading Issue: Appian Interpreting "2026-07-17" as Mathematical Expression Instead of Date String</title><link>https://community.appian.com/thread/150351?ContentTypeID=1</link><pubDate>Fri, 25 Jul 2025 10:00:01 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:89095996-2133-4256-bbd5-ec22fdc5c505</guid><dc:creator>Alessandro Tolli</dc:creator><description>&lt;p&gt;Thanks for your answer. The problem is that the Excel cell(s) is not read as Text string but as a number (e.g.&amp;nbsp;2026-07-11 = 2008 as integer and thus Appian works with the 2008 instead of the previous one with the yyyy-mm-dd format ). I can&amp;#39;t find a workaround to that&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Excel Date Reading Issue: Appian Interpreting "2026-07-17" as Mathematical Expression Instead of Date String</title><link>https://community.appian.com/thread/150350?ContentTypeID=1</link><pubDate>Fri, 25 Jul 2025 09:58:29 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a40477be-99c1-4715-961f-08af552c9b1a</guid><dc:creator>Shubham Aware</dc:creator><description>&lt;p&gt;You have to format data to date object manually&lt;br /&gt;&lt;br /&gt;I added for both date and dateTime&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!map(
  date: a!localVariables(
    local!dateText: &amp;quot;2026-07-17&amp;quot;,
    local!datePart: left(local!dateText, 10),
    local!temp: split(local!datePart, &amp;quot;-&amp;quot;),
    date(
      local!temp[1],
      /* year */
      local!temp[2],
      /* month */
      local!temp[3]/* day */
      
    )
  ),
  dateTime: a!localVariables(
    local!dateText: &amp;quot;2026-07-17 00:00:00&amp;quot;,
    local!datePart: left(local!dateText, 10),
    local!temp: split(local!datePart, &amp;quot;-&amp;quot;),
    date(
      local!temp[1],
      /* year */
      local!temp[2],
      /* month */
      local!temp[3]/* day */
      
    )
  )
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Excel Date Reading Issue: Appian Interpreting "2026-07-17" as Mathematical Expression Instead of Date String</title><link>https://community.appian.com/thread/150349?ContentTypeID=1</link><pubDate>Fri, 25 Jul 2025 09:47:49 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d7d37cdd-227a-4162-b263-1252167924b2</guid><dc:creator>Harsha Sharma</dc:creator><description>&lt;p&gt;You can refer the code&amp;nbsp;below to convert date from a date stored as text - as long as you are always getting a consistent yyyy-mm-dd format from the excel.&lt;/p&gt;
&lt;p&gt;If you have inconsistent formats then depending on format some adjustments will need to be made to retrieve the date. Hope it helps!&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!dateText:&amp;quot;2026-07-11&amp;quot;,
  local!temp:split(local!dateText,&amp;quot;-&amp;quot;),
  date(local!temp[1],local!temp[2],local!temp[3])
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>