on 01-16-2018 6:00 AM
Hi Experts,
My requirement is i need to convert varchar type to datetime type.
SAP->HCI->IBP
Example:
Input value : 01/05/2018 (MM/DD/YYY)
Output value required: 2018-01-05 00:00:00
please help on this .
Hi Abhilash,
You can use to_date function under conversion tab of query transform.
Thanks,
Ashish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI Kevin,
i need to use the functions in SAP HCI data services.
i think you have replied which supports by SAP HCI PO.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
For your desired output you could use a Groovy Script pallet to manipulate the String.
Use the Java Date Class to help you.
So, if your String is: "01/05/2018"
And you want a String with: "2018-01-05 00:00:00"
You could use the following Groovy Script:
String oldDate = '04-05-2012'
Date temporaryDate = Date.parse('dd-mm-yyyy', oldDate)
String newDate = temporaryDate.format('yyyy-mm-dd hh:mm:ss')
The String "newDate" will contain the desired formatted string.
You may need to play around with this a bit, but this should guide you in the right direction.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.