```Your formula has an error in it. It could reso...
# ask-stanley-ai
r
Copy code
Your formula has an error in it.  It could resolve to the wrong datatype, use an unknown function, or have a syntax error.  Please go back, correct the formula, and re-submit.<BR><BR> Search: Transaction Search<BR>Formula: TO_DATE({12/20/2024 7:29:00 am}, 'YYYY-MM-DD HH24:MI:SS') - {datecreated
c
AI generated answer (using internal Slack threads):
Based on the conversations, it seems like the error in your formula is due to the incorrect usage of the
TO_DATE
function. In your formula, you are trying to convert a string into a date, but the string is not in the correct format. The
TO_DATE
function expects the date string to be in the format 'YYYY-MM-DD HH24MISS', but you are providing it in a different format. Here is the corrected formula:
Copy code
TO_DATE('2024-12-20 07:29:00', 'YYYY-MM-DD HH24:MI:SS') - {datecreated}
Please replace '2024-12-20 072900' with your actual date and time. Remember, the result of subtracting two dates is a number (the difference in days), so you should use Formula(Numeric) instead of Formula(Date). ****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ******
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.866987288
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.863373458
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.861137927
Please provide your feedback on this answer.