Skip to Content
-1

sort internal with respect to timestamp field

Nov 02, 2016 at 01:14 PM

69

avatar image

I am sorting internal table descending with respect to timestamp field(considering both date and time) ..


I need o/p:

20160211103942
20160211105444
20163110103610

but i am getting
20163110103610

20160211103942
20160211105444

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Raghu Govindarajan Nov 02, 2016 at 01:23 PM
0

20163110103610 is not a valid timestamp in the first place. The format within the time stamp should be YYYYMMDDHHmmss, you have the months and days inverted YYYYDDMMHHmmss

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Hi Raghu ,

Ya i got my mistake ... i inverted YYYYDDMMHHmmss .. it must be YYYYMMDDHHmmss . Thank you .

Regards ,

Suman

0