06-13-2022 05:35 AM
Hi,
My requirement is to pass the date as a string “YYYY/MM/DD HH:MI:SS” as a parameter to Oracle procedure snap. I amssusing the expression - Date.now().toLocaleDateString({“format”:“yyyy/MM/dd HH:mm:ss”}).toString()
I can see the correct format in the value but while it is passed as a parameter it always has additional characters as below -
Could you please suggest how I can correct this expression?
06-13-2022 01:23 PM
what do you mean by _p_processing_date
In SnapLogic terminology:
So if the p_processing_date was a parameter, you would use _p_processing_date.
In this case, you are mapping a date to a field.
06-13-2022 01:05 PM
Hi All, can anyone suggest how to handle this situation?
06-14-2022 04:52 AM
I don’t have a parameter it’s but the current data is generated in the mapper and I am passing it to oracle procedure snap as the parameter.
Do you think I need to change the date again to the string?
06-15-2022 01:43 PM
toLocaleString() is adding the timezome, same for toUTCString()…you could just add a .split(‘.’)[0] to remove the string value for timezone
06-16-2022 12:08 AM
What is the purpose of the “Parameters to Integer” snap ?