Skip to Content

How to Determine a Valid Date Check in HANA Calculation View

Hi Experts

I need your Assistance to Check whether a Particular date value is really a Valid date.

I have a table where the date is stored as 20,130,231,220,000. And I converted it to a readable format value "20130231".

But Since no February month as 31 days am getting an Date error in HANA Data Preview output, Since a wrong value has been stored in the table.

Kindly provide me a formula to identify or to differentiate Valid dates and Invalidates.

How to check whether "20130231" this is a Invalid date. Kindly help me on this ASAP, so that i will create a calculated column for this date validity check.

Thanks

Rufus Samuel

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Apr 04 at 09:35 PM

    Hi,

    Use Function: dats_is_valid()

    if the date(it should be in ABAP date format. e.g: 20170228 ) is valid then above function will result '1' if not '0'

    create a calculated column and apply projection filter = 1 to fetch only records with valid dates

    Regards,

    Nag

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 16 at 04:51 AM

    Hi Nagaraj,

    Yes, It worked :) Thanks a ton

    Regards
    Rufus Samuel

    Add comment
    10|10000 characters needed characters exceeded