cancel
Showing results for 
Search instead for 
Did you mean: 

How to change format of Date?

Former Member
0 Kudos

hi

I have a input field of type date.The format of the date is mm/dd/yy , i want to change the format of the date to

dd/mm/yy .How can this be done?

please help me

Regards

Nidhideep

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi

Plz go through the following links .

I hope it will tell you all the things related to Date & time.

http://help.sap.com/saphelp_nw2004s/helpdata/en/96/aeb14000a6c84ee10000000a1550b0/frameset.htm

http://help.sap.com/saphelp_nw2004s/helpdata/en/96/aeb14000a6c84ee10000000a1550b0/frameset.htm

http://help.sap.com/saphelp_nw2004s/helpdata/en/42/c87909c84d136de10000000a1553f7/frameset.htm

in these link you can also check for how to add combination of date & time Format.

All The Best

PRIYANKA

Do reward Points

Former Member
0 Kudos

hi,

data: v_time(10).

write sy-datum to v_time.

write : v_time.

The date dispaly Format is also depends upon the user settings in SU01.

Thanks,

Murali

Former Member
0 Kudos

use write statement

write: sy_datum to v_datum dd/mm/yy.

Former Member
0 Kudos

Hi,

SimpleDateFormat fmtDatePlain = new SimpleDateFormat("dd/mm/yyyy");

String formattedDate = fmtDatePlain.format(yourdate)

the output is string

Have a look at this thread

Regards

Saravanan K

Message was edited by: Saravanan K

Former Member
0 Kudos

Hi

See the Thread

Kind Regards

Mukesh