cancel
Showing results for 
Search instead for 
Did you mean: 

Date format

Former Member
0 Kudos

How can I format a date within a query MM/DD/YYYY ?

Accepted Solutions (1)

Accepted Solutions (1)

former_member206488
Active Contributor
0 Kudos

Hi,

Try setting in Administrationsystem initializationgeneral setting.

this will change the date format of all date fields of sap.if u want to show for particular form field use below query

SELECT CONVERT(VARCHAR(10), GETDATE(), 101) AS [MM/DD/YYYY]

change getdate to your field name and add table name

Thanks,

Neetu

Former Member
0 Kudos

Thank you!!

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Marianna.....

What is your date format currently in SAP? Is that DD/MM/YYYY?

if you want it in MM/DD/YYYY

then go to Administration --> System Initialization --> General Settings --> Dosplay Tab and select the date format MM/DD/YYYY.......

Hope this will solve your problem......

Regards,

Rahul

Former Member
0 Kudos

Can this be done only in the sql query - I don't want to make any changes on the company's system.