Quantcast
Channel: SCN : All Content - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 6745

SAP HANA - How to get last index of a given string?

$
0
0

Hello Experts,

 

I need to separate the date time and time zone details from a date time string stored in a column.

 

Example strings are

 

01/02/2013 01:02:03 AEST

01/02/2013 01:02:03 EST

01/02/2013 01:02:03   IST

 

I want to get the last index of white space and get substring till the end. I'm not finding any method which gets me last index of a given string in HANA.

What is the correct way to get timezone info from these strings?

 

Thanks,
Suren.


Viewing all articles
Browse latest Browse all 6745

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>