cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with a date time variable

Sonia
Not applicable

Hi, having bit of trouble with a data time variable, my datapill is in this format: 2026-01-29T06:01:28.000000-05:00 and using all possible hints from AI to convert it to YYYY-MM-DD HH:MM but it just returns: Error calculating input for field 'date':
wrong number of arguments (given 1
expected 0)

I'm only just starting my journey with workato

1 ACCEPTED SOLUTION

rajeshjanapati
Executive Chef I
Executive Chef I

Hi @Sonia,

Yes, I too getting errors with strftime and .to_date and .to_time formula, but we need to walk through some work around solution with formula. but for instant thought, please check the below solutions.

 
 

Screenshot 2026-01-30 170707.pngScreenshot 2026-01-30 170755.png

 

View solution in original post

6 REPLIES 6

francbaviello
Deputy Chef II
Deputy Chef II

Hi @Sonia , this is the correct solution formula:

="2026-01-29T06:01:28.000000-05:00".to_time.strftime("%Y-%m-%d %H:%M")

where "2026-01-29T06:01:28.000000-05:00" is the value of field datapill

This is the way.