on 03-20-2014 8:11 AM
Hi,
I want to get my date in Date Format (dd-mm-yy).
Regards.
May T
Hi May T
If you go to your service Agent creation/modification screen inside the "Application and user management" Work center. there you can choose different date formats. Choose the one you prefer and save it. It will change it.
Regards
Asad
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello May T,
If you want to see the datre fields on the UI in the requested format follow Asad suggestions.
However, as you post this in the "SAP Cloud Applications Studio" area, I assume you refer to ABSL coding.
Please take a look at the reuse library "Date".
Some examples:
// Create a date from numeric
this
.date = Date.Create(20
,3
,2014
);
// Create a date from string
this
.date = Date.ParseFromString("20140320"
);
// Get the day => 20
this
.day = this
.date.GetDay();
// Get the month => 3
this
.month = this
.date.GetMonth();
// Get the year => 2014
this
.year = this
.date.GetYear();
HTH,
Horst
Hi Horst,
Is there a function that will format the Date to a specific string format, for example the Date is 2014-08-12 then you want your output in this string format Aug 12 2014? Or do you need to do this manually in your code? like GetMonth(), then if 08, string = "Aug"? and so on and so forth.
Regards,
Rajiv
Hello Horst,
In your example code,
this
.day = this
.date.GetDay();
// Get the month => 3
how would I achieve fetch the Day for my date?
Example: Input: 06182015, this should return Thursday to me.
Is there any standard function or other way how I will achieve this?
I have also created a separate thread for this query.
Thanks in Advance.
Regards,
Chandan
Hi
Use T code- SU3 - go to default tab - change Date format as per your requirement
Thanking you
Mahesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
75 | |
10 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.