โ02-16-2023 05:43 AM
I am running select queries in Oracle execute. They run fine but i have 2 issues. I am unable to use any where clauses and I am unable to do any kind of date formatting in the mapper. For example, i need the format of the date to be MM/DD/YYYY but when i try to map that, I get NaN or a blank date. The mapping works fine if I am just looking at an excel spreadsheet. Here is an example of the date issue and what i am trying to format:
[
{
value:{
_snaptype_localdatetime:โ1963-08-27T00:00:00.000โ
}
sub-expression:{
}
Date.parse($[โDate of Birthโ]).toLocaleDateTimeString({โformatโ:โMM-DD-YYYYโ})
TURNS IT TO NULL
I am not finding a lot of Oracle Syntax documentation. If anyone can point me in a direction, i would appreciate it.
โ02-22-2023 12:55 PM
If you are using Oracle Execute, Iโm assuming you are overriding the SELECT statement, so you could possibly just use the built-in Oracle TO_CHAR function to format the date as desired rather than waiting to do it in SnapLogic.