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: 

how to get day and month given a Date?

Former Member
0 Kudos

Hi expert,

is there any FM to get the day and month given a date pass to the FM?

for eg: given 10.01.2008, the result that i want is to get

day = 10th, and month = 01.

Thanks.

2 REPLIES 2

Former Member
0 Kudos

Hi...

I am not sure whether there is any function module for your requirement,

instead i feel u can use

if date datein = 01

concatenate ( st )

elseif datein = 02

concatenate ( nd )

elseif datein = 03

concatenate ( rd )

elseif

concatenate (th )

endif.

endif.

endif.

i am just givina an idea....use the proper syntax and field name of urs.

Regards

Rachelarun

Former Member
0 Kudos

>

>

> for eg: given 10.01.2008, the result that i want is to get

> day = 10th, and month = 01.

>.

cant you use date4(2) for month, and date6(2) for day?