Forum Discussion

Sahil's avatar
Sahil
Contributor
4 years ago
Solved

Write expression for conditional check

Hi, I want to write this code in expression snaplogic. I need to map TestID. <xsl:variable name=“TestID”> <xsl:if test=“exists(node()/IDOC/A1[VW=‘F’]/NO)”> <xsl:copy-of select=“node()/IDOC/...
  • jaybodra's avatar
    7 years ago

    @virender.prajapati I have seen this happening to me in MySQL. I used toLocalDateTimeString() function before inserting it into the DB and worked fine.

    You can try this in your mapper,
    Date.UTC(Date.now().minusMonths(1).getFullYear(),Date.now().minusMonths(1).getMonth(),0).toLocaleDateTimeString({“format”: “yyyy-MM-dd HH:mm:ss”,“timeZone”:“UTC”})

    You can also look into oracle jdbc url properties