on 2024 Jun 17 1:50 PM
Hello Team,
Please guide me how to change data type from time to string from a table by using python operator in sap data intelligence.
BR,
Subhendu
Request clarification before answering.
Suppose you have a datetime column "UPDATED_ON", you can use the function "strftime" to convert it to a string with a specific format:
1. import the "datetime" class from "datetime" module
from datetime import datetime
2. use "strftime" to convert it to a string
datetime.strftime("UPDATED_ON", '%Y-%m-%d %H:%M:%S')
you can find more details from the link below:
8.1. datetime — Basic date and time types — Python 3.5.9 documentation
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
34 | |
21 | |
8 | |
5 | |
4 | |
4 | |
4 | |
4 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.