on 2016 Sep 18 10:39 PM
Hi,
Please use the below formula in your calculated column.
format (longdate ("START_DATE"), 'YYYY-MM-DD')
It will convert your NVARCHAR Data Type to DATE Data Type.
Data Preview Result,
Refer this link to get calculated column DATE functions.
Date Functions - Creating a Graphical Calculation View and Previewing its Output - SAP Library
Regards,
Muthuram
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Strange part is that , when I put this Date in Bex query , I can see the "Attribute values" properly as date , date filled correctly.
But when I execute the query it is not working and throws the same error which I am getting when I see the data in HANA view.
Please suggest if any idea.
Many Thanks !
Hi Raju,
I do not understand why you are getting issue again and again?
Using the formula, which I mentioned above, CHAR to DATE conversion could be done easily.
Please Copy - Paste this Formula in your expression and Execute and let me know.
[P.S: I noticed, In your screenshot you used two parentheses after longdate]
format (longdate ("START_DATE"), 'YYYY-MM-DD')
Hi Muthuram,
As the conversion issue is not getting resolved , I was just wondering if I can format the NVARCHAR column in the date format. for eg. 20160920 , I want to show as 20.09.2016 , in nvarchar column itself. can we do this kind of formatting for string.
This date is just for display purpose.
Please suggest.
Thanks!
Unfortunately it did not work
Error: [303]: invalid DATE, TIME or TIMESTAMP value: [303] invalid DATE, TIME or TIMESTAMP value: search table error: [6931] attribute value is not a date or wrong syntax;daydate comma(daydate daydate(string format(longdate [here]longdate(string "COL$1$"), string 'YYYYMMDD'))),COL$1$ = '?'[string]; checkNull false
Wondering why is it failing, as it seems to be a simple conversion of NVARCHAR to DATE
User | Count |
---|---|
81 | |
10 | |
10 | |
10 | |
10 | |
9 | |
8 | |
7 | |
6 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.