cancel
Showing results for 
Search instead for 
Did you mean: 

Get the printed date format label; in which format date has been printed

former_member653066
Participant
0 Kudos

Hello,

I have a requirement to get the text/label of printed date format, which means in which format date has been printed.

ex: write (date) to (some variable).

so, here I want to know the format of date printed.. Ex: 12/31/2019 which means MM/DD/YYYY..

I want to know the format of date dynamically ?

is it possible?

thanks in advance.

mahi

Sandra_Rossi
Active Contributor

Not possible, because how would you know whether 01/05/2019 is May 1st (DD/MM/YYYY) or January 5th (MM/DD/YYYY)?

View Entire Topic
Rashid_Javed
Contributor
0 Kudos

I am assuming that you are talking about the date format of logged on user (sy-uname). If this is the case than you can check field DATFM in table USR01 for date format against the given user id.

Otherwise there is no way to find out from the text string itself if the date is DD/MM/YYYY or MM/DD/YYYY (as mentioend by Sandra above in comments)