<?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>Wonkiness in todate() and how to validate incoming dates</title><link>https://community.appian.com/discussions/f/general/39952/wonkiness-in-todate-and-how-to-validate-incoming-dates</link><description>I am getting some strange values from todate(). 
 
 
 
 
 It seems to try to auto-correct an invalid date to a valid date. But it also seems to allow characters in the date which it evaluates somehow and comes up with wild dates as a result. 
 First Question</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Wonkiness in todate() and how to validate incoming dates</title><link>https://community.appian.com/thread/152520?ContentTypeID=1</link><pubDate>Thu, 20 Nov 2025 19:12:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3a1e5fac-7f04-45d4-818d-c6076131a6d1</guid><dc:creator>stevenh6272</dc:creator><description>&lt;p&gt;last I knew leap year is when (year mod 4) == 0 except when (year mod 100) = 0.... I think there others beyond this but I doubt our app will still be running after Y2100.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Wonkiness in todate() and how to validate incoming dates</title><link>https://community.appian.com/thread/152518?ContentTypeID=1</link><pubDate>Thu, 20 Nov 2025 19:10:59 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e57d6555-43ab-42c1-beb7-820cfde7bbae</guid><dc:creator>stevenh6272</dc:creator><description>&lt;p&gt;Ok.&amp;nbsp; Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Wonkiness in todate() and how to validate incoming dates</title><link>https://community.appian.com/thread/152517?ContentTypeID=1</link><pubDate>Thu, 20 Nov 2025 19:07:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1d5d3fe8-ca9c-498b-888c-18b1bc5504a6</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;I do not know of anything built in. Maybe there is a plugin. But even date is tricky with all the leap year logic.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Wonkiness in todate() and how to validate incoming dates</title><link>https://community.appian.com/thread/152514?ContentTypeID=1</link><pubDate>Thu, 20 Nov 2025 18:29:10 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e6a4d1b9-328e-4aa7-b986-f59dc867cc77</guid><dc:creator>stevenh6272</dc:creator><description>&lt;p&gt;Is there anything built in for this or do I need to craft the rules from scratch?&amp;nbsp; Date rules aren&amp;#39;t too hard.&lt;/p&gt;
&lt;p&gt;Timestamp rules would be untenable.&amp;nbsp; How in the world would I validate leap seconds?&amp;nbsp; &amp;nbsp;Good thing I don&amp;#39;t need this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Wonkiness in todate() and how to validate incoming dates</title><link>https://community.appian.com/thread/152513?ContentTypeID=1</link><pubDate>Thu, 20 Nov 2025 18:26:46 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f1111bae-bc5d-4711-9303-e617dd3fb30c</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;What should happen if the date is not good? Throw an error which you cannot catch? I think that you will to have validate the values as long as you can. In your situation, this means the intermediary dictionary.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>