0

I tried to convert order created date in the format of yyyy-MM-dd'T'HH:mm:ss.SSSS'Z' into a string using the following SAQL command.

date_to_string(CreatedDate,"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")

which returned this error message "invalid field expression"

Something went wrong while executing the [node name]: invalid field expression for [field name]

Any idea how to resolve this?

0

You could try using (generate a Date value out of the sec_epoch value). That worked for me.

date_to_string(toDate(CreatedDate_sec_epoch), "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.