Application Development and Automation 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: 
Read only

date conversion

Former Member
0 Likes
666

i need to convert the date to start date

eg: if i get date from d.b table as 25.8.2005, then i need to transilate to 1.8.2005 by which f.m i can solve this issue.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
641

use the fm

HR_JP_MONTH_BEGIN_END_DATE

and pass ur date, u wil get both start date and end date of that month

5 REPLIES 5
Read only

Former Member
0 Likes
641

i think no fm is there do like this.

data : vdate like sy-datum.

concatenate dbdate(6) '01' into vdate.

now your vdate contains the data

regards

shiba dutta

Read only

Former Member
0 Likes
641

Hi,

Take the Month, Year from the Date by offsetting and use concatenation with

Year month '01' into a fresh date.

Or so many fun modules to get the first day of a month.

Regards,

Anji

Read only

Former Member
0 Likes
641

Instead, split the date into character variables and initialize day to '1' for the same month.

Read only

Former Member
0 Likes
641
data : v_date(10) value '25.08.2005',
          v_start(10).

concatenate '01' v_date+2(8) into v_start.

write : / v_start.

Message was edited by:

Chandrasekhar Jagarlamudi

Read only

Former Member
0 Likes
642

use the fm

HR_JP_MONTH_BEGIN_END_DATE

and pass ur date, u wil get both start date and end date of that month