- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Formatting date in SAP system
You will need to apply new culture to the existing thread as shown below:
Example
DateTime now = DateTime.Now; Console.WriteLine(now); CultureInfo sapCulture = new CultureInfo("en-US", true); sapCulture.DateTimeFormat.ShortDatePattern = "ddMMyyyy"; //sapCulture.DateTimeFormat.FullDateTimePattern = sapCulture.DateTimeFormat.ShortDatePattern + " HH-mm-ss"; sapCulture.DateTimeFormat.LongTimePattern = "HH-mm-ss"; //sapCulture.DateTimeFormat.ShortTimePattern = "HH-mm-ss"; System.Threading.Thread.CurrentThread.CurrentCulture = sapCulture; //System.Threading.Thread.CurrentThread.CurrentUICulture = sapCulture; Console.WriteLine(now);
- Related Articles
- Date Formatting Using printf
- Date Formatting Using SimpleDateFormat
- Change date formatting symbols in Java
- Where can I find documentation on formatting a date in JavaScript?
- Difference between SAP ECC system and SAP BW system?
- Prevent XML re-formatting in WAS response in SAP Windows Activation Service
- Using Breakpoint in SAP system
- System measurement of SAP HANA system in XML file
- Trusted RFC connection in SAP system
- Data Compression in SAP HANA system
- Create an INCLUDE in SAP system
- Getting table name in SAP system
- Index server in SAP HANA system
- Checking System limits in SAP HANA
- Current alerts in SAP HANA system

Advertisements