How to convert the date correctly? (client_sys.attr_value_to_date)
I am trying to insert the history row to customer order while inserting the date is converting wrong. I tried many ways but still the same. How should I write?
SELECT client_sys.attr_value_to_date(to_date(SYSDATE)) FROM dual
SELECT client_sys.attr_value_to_date(to_date(SYSDATE, 'dd/mm/yy HH:MI:SS')) FROM dual
Page 1 / 1
I am trying to insert the history row to customer order while inserting the date is converting wrong. I tried many ways but still the same. How should I write?
SELECT client_sys.attr_value_to_date(to_date(SYSDATE)) FROM dual
SELECT client_sys.attr_value_to_date(to_date(SYSDATE, 'dd/mm/yy HH:MI:SS')) FROM dual
Hi Hasan,
Can you post example code you are trying, may be it will be helpful to see the error.
@dsj Hi
You can see bellow
@dsj Hi
You can see bellow
Try this
to_char(SYSDATE, 'YYYY-MM-DD-HH24.MI.SS')
@dsj Thank you very much
CLIENT_SYS has overloads for each data type, so if you build the attr_ string using the out-of-the-box tooling, you don’t have to worry as much about the data types.