Skip to Content
avatar image
-1
Former Member

sort internal with respect to timestamp field

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Nov 02, 2016 at 01:23 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Raghu ,

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

      Regards ,

      Suman