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: 

Date of birth upto 100 years

0 Kudos

Hi Experts,

Can anyone please tell me program for the below conditions??

1.I have enterd my date of birth it has to show date of birth after 50 years.

2. in that it has to show how many mondays , tuesdays, wednesdays, thursdays, fridays, saturday, sundays, in that duration of 50 years. it has to count how many days it has came.

thanks & regards,

sanju

1 ACCEPTED SOLUTION

Jelena
Active Contributor

"Can anyone please tell me program for the below conditions?"

Sorry but no. This is obviously some kind or a training / interview question and you need to learn to write programs yourself. What would you learn if "experts" do all the work for you? This would be a disservice to you, actually.

Use Google and ABAP documentation. If you have a specific challenge then post a more specific question, including what you've tried already.

5 REPLIES 5

UweFetzer_se38
Active Contributor

Really, you want us to write your certification or whatever test? (hint: number_of_days_since_birth = sy-datlo - date_of_birth)

ArthurParisius
Contributor
0 Kudos

Do want the number of those days separately or do you just want the total amount of days between your actual date of birth and your birthday x amount of years in the future?

dev_parbutteea
Active Contributor

Hi,

please phrase your questions correctly...

1. "I have entered my date of birth it has to show date of birth after 50 years." --> some one's Date of birth will never change .. even after 100 years 🙂 You are maybe asking to calculate difference between DOB and DOB + 50 years..

Please search the forums for calculating num of days / weeks etc between 2 dates...

UweFetzer_se38
Active Contributor

... and please delete the tag "ABAP Connectivity"

Jelena
Active Contributor

"Can anyone please tell me program for the below conditions?"

Sorry but no. This is obviously some kind or a training / interview question and you need to learn to write programs yourself. What would you learn if "experts" do all the work for you? This would be a disservice to you, actually.

Use Google and ABAP documentation. If you have a specific challenge then post a more specific question, including what you've tried already.