Forum Discussion

amit_saroha's avatar
amit_saroha
New Contributor III
4 years ago

Incorrect date format

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?

11 Replies

  • ptaylor's avatar
    ptaylor
    Employee

    Yes, if it’s Python 2.x compatible and doesn’t do anything too weird.

    It does require some special configuration on the plex node though. You create a file called .jython in the home directory of the user that the jcc runs as. In that file you would define

    python.path=/the/path/to/the/root/of/your/python/library/collection

    for example, on my system it would be

    python.path=/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7

    Then in your Script source, you can just import any of the packages that are present under that path.