Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

function that check if date and time between to dates and time

Former Member
0 Kudos

hi

is there any function that can check if date and time are between to dates and time ?

thanks

Ami

1 ACCEPTED SOLUTION

Former Member
0 Kudos

You can check using IF condition.


DATA : d1 TYPE datum, d2 TYPE datum, d3 TYPE datum.

IF d1 BETWEEN d2 AND d3.
  d1 = d1 + 1.
ENDIF.

where d1, d2 and d3 are dates.

Similarly you can check for Time and Timestamp.

regards,

Jinson

2 REPLIES 2

Former Member
0 Kudos

This message was moderated.

Former Member
0 Kudos

You can check using IF condition.


DATA : d1 TYPE datum, d2 TYPE datum, d3 TYPE datum.

IF d1 BETWEEN d2 AND d3.
  d1 = d1 + 1.
ENDIF.

where d1, d2 and d3 are dates.

Similarly you can check for Time and Timestamp.

regards,

Jinson