Displaying date in 01-Jan-2008 format
hi,
I have a urgent requirement while displaying date after selected from the date picker, Is it possible to display date in 01-Jan-2008 format in the date field.
Thanks in advance.
kris
Gopi,
It look like a bug in WebDynpro, Check below threads for more information:
Why this Date format (dd.MMM.yyyy) doesn't work?
Re: InputField DatePicker Questions
http://help.sap.com/saphelp_nw04/helpdata/en/4a/05ad3e1d1edc61e10000000a114084/content.htm
Thanks
Sandy
Similar Messages
-
How to get the date in 01-jan-2008 format
hi
how to get the date in 01-jan-2008 formatCheck this example of how to get this format..
TABLES: T247.
DATA: V_DATE TYPE SYDATUM.
DATA: V_STRING(20).
V_DATE = SY-DATUM.
SELECT SINGLE * FROM T247
WHERE SPRAS = SY-LANGU
AND MNR = V_DATE+4(2).
IF SY-SUBRC = 0.
CONCATENATE V_DATE+6(2) '-' T247-KTX '-' V_DATE(4)
INTO V_STRING.
WRITE: / V_STRING.
ENDIF.
or
make use of this FM
CONVERSION_EXIT_IDATE_OUTPUT
and see its documentation.
or
/: SET DATE MASK = 'DD-MMM-YYYY'
&DATE&
check with this.
if it is not working try to give space between DD and MMM and YYYY
all of the three work...choose whichever suits u
eg2:
Use FM:CONVERSION_EXIT_IDATE_OUTPUT
Check this Program.....
DATA:DATE TYPE D VALUE '20070912'.
DATA:DATE2(12) TYPE C.
DATA:FINAL_DATE(15) TYPE C.
CALL FUNCTION 'CONVERSION_EXIT_IDATE_OUTPUT'
EXPORTING
INPUT = DATE
IMPORTING
OUTPUT = DATE2.
CONCATENATE DATE20(2) '-' DATE22(3) '-' DATE2+5(4) INTO
FINAL_DATE.
WRITE:FINAL_DATE.
Eg:3
use FM MONTH_NAMES_GET by passing month_names-spras = 'E'
it will return the Mont names in month_names-KTX ( 3 cha short name ) & month_names-LTX ( Long text ). then concatenate 'DD''-' month_names-KTX & 'YY'
reward points if useful -
Want date in 21 jan 2007 format
I want to output date in 21 jan 2007 format which is curently in 21/1/2007 format
Can anyone suggest me a FM ? RegardsYou can use this FM: CONVERSION_EXIT_IDATE_OUTPUT
Regards,
Naimesh Patel -
Displaying date in dd/MM/yyyy format
Hi all,
I am having one date field .To display the date in correct format, I created a dictionary simple type of type date and entered dd/MM/yyyy in representation tab.
I was using 2004 and it was working properly. Now I am using 2004s for the same application. The problem is when I am selecting a date , it is showing the date in MM/dd/yyyy format in first time. If I selects the date again, then it will be in dd/MM/yyyy format. How can I make the selection in dd/MM/yyyy in first time itself
Thanks
Fahad HamsaHi,
Try this:
1. Create a simple type in the local dictionary. Call it say, CustomDateType.
2. Set the built-in type as date.
3. Go to the representation tab and under "External Representation" set the format to "dd/MM/yyyy".
4. Create a context value attribute day, CustomDate and set its type to CustomDateType.
5. Create an inputfield with id say, "DateField" and bind its value property to CustomDate.
6. Now in your wdDoModifyView() write the following code:
if(firstTime){
IWDViewElement e = view.getElement("DateField");
e.requestFocus();
Regards,
Satyajit. -
The clock is set to a date before 1 Jan 2008 and some applications may behave erratically.
hi. this afternoon. I accidently set my time to 1987.
then after awhile. I cant borswer any website. then I try to open app store. And it is all white pages.
but all my sofeware are still working.
then i reastar my Imac. it shows "your clock is set to a date before Jan1. 2008"
okay. And I was going to change it.
but it dosnt let me.
I opened the setting. but it just shows loading date & time forever.
i had wait for a hour already. still show like that.
thx. i really need help. what can i do . it drives me crazy ...If you can launch Terminal (found in /Applications/Utilities) you should be able to run the date command. For example, if you do this now, you could run:
sudo date 011120462014
That should set your time to January (01) 11 (11) 8 (20):46 p.m. 2014.
R-
<Edited by Host> -
How to display date field in ALV in format 'YYYY-MM-DD'?
Hi experts,
I am not getting displayed the date field in ALV in the format 'YYYY-MM-DD' if it is different than my user setting's format (DD.MM.YYYY).
Tried with the edit mask
LVC_S_FCAT-EDIT_MASK = '____-__-__' but it does not work.
I could not find the conversion routine for this. Is it possible to write customer conversion routine?
I have to use DATE field, otherwise if I display this format in CHAR10 field , sorting in ALV does not work for this field.
PLEASE ANY HELP!
Kind regards,
DanijelaHi,
Use FM FORMAT_DATE_4_OUTPUT.
TYPE-POOLS : slis, KKBLO.
TYPES: BEGIN OF t_data,
sel TYPE char1,
matnr TYPE matnr,
bldat type char10,
END OF t_data.
DATA: it_tab TYPE STANDARD TABLE OF t_data,
it_fcat TYPE slis_t_fieldcat_alv.
DATA: wa_tab TYPE t_data,
wa_fcat TYPE slis_fieldcat_alv,
wa_layout type SLIS_LAYOUT_ALV.
data: lv_repid TYPE syrepid.
data : lv_date type NLEI-IBGDT,
lv_outdate type RN1DATUM-DATEX,
lv_format type RN1DATUM-FORMAT value 'YYYY-MM-DD'.
lv_repid = sy-repid.
lv_date = sy-datum.
CALL FUNCTION 'FORMAT_DATE_4_OUTPUT'
EXPORTING
datin = lv_date
format = lv_format
IMPORTING
DATEX = lv_outdate.
move lv_outdate to wa_tab-bldat.
wa_tab-matnr = '0000001'.
APPEND wa_tab TO it_tab.
lv_date = sy-datum + 1.
CALL FUNCTION 'FORMAT_DATE_4_OUTPUT'
EXPORTING
datin = lv_date
format = lv_format
IMPORTING
DATEX = lv_outdate.
move lv_outdate to wa_tab-bldat.
wa_tab-matnr = '0000002'.
APPEND wa_tab TO it_tab.
lv_date = sy-datum + 2.
CALL FUNCTION 'FORMAT_DATE_4_OUTPUT'
EXPORTING
datin = lv_date
format = lv_format
IMPORTING
DATEX = lv_outdate.
move lv_outdate to wa_tab-bldat.
wa_tab-matnr = '0000003'.
APPEND wa_tab TO it_tab.
wa_fcat-fieldname = 'SEL'.
wa_fcat-ref_fieldname = 'XCHPF'.
wa_fcat-ref_tabname = 'MARA'.
wa_fcat-edit = 'X'.
wa_fcat-checkbox = 'X'.
APPEND wa_fcat TO it_fcat.
CLEAR : wa_fcat.
wa_fcat-fieldname = 'MATNR'.
wa_fcat-ref_fieldname = 'MATNR'.
wa_fcat-ref_tabname = 'MARA'.
APPEND wa_fcat TO it_fcat.
CLEAR : wa_fcat.
wa_fcat-fieldname = 'BLDAT'.
wa_fcat-ref_fieldname = 'BLDAT'.
wa_fcat-ref_tabname = 'BKPF'.
APPEND wa_fcat TO it_fcat.
call 'REUSE_ALV_GRID_DISPLAY'' after this
Edited by: Ankur Parab on Oct 1, 2009 2:50 PM
Edited by: Ankur Parab on Oct 1, 2009 2:51 PM -
How to display data in table with specified format?
Hi,
Jdev 11.1.1.4, ADF BC and ADF Faces
In my application I have created a EO based view object which will return data as below.
Deptid Loc seq
1 Loc1 1
1 Loc2 2
2 Loc1 3
2 Loc2 4
3 Loc1 5
3 Loc2 6Now I have to display the data in table like below
Loc1
1 1st row
Loc2 Loc1
2 2nd row
Loc2 Loc1
3 3rdrow
Loc2 How can I do that? Any help will be appreciated.
~Abhijit
Edited by: Abhijit Dutta on Nov 5, 2011 6:18 PMcheck this thread...
display the data in chart format -
Display date in DD.MM.YYYY format
Hi all,
In my XML one filed is data-type of date and it is coming in DD-MON-YYYY format,but client wants to see in DD.MM.YYYY format in PDF output.I am trying
<? format-date:DATE_ISSUED;'DD-MM-YYYY'?> in RTF ,but PDF is still showing in DD-MON-YYYY format.
Please help me to achieve this.You can only format dates when they are in the canonical date format. This format looks like: YYYY-MM-DD HH24:MI:SS.
You have two options:
1. adapt the XML generation process to generate the date in the canonical format (YYYY-MM-DD) and use the <?format-date:DATE_ISSUED:'DD.MM.YYYY'?> in the template.
2. adapt the XML generation process to generate the date in the format of the client (DD.MM.YYYY) and print this directly on your report.
Regards,
Kevin -
Datechooser display current date in YYYY/MM/DD format on init
I have two date fields. I'd like one date chooser to display
the current date on creation complete and the other should display
the 30 days after the current date.
The format needs to be YYYY/MM/DD.
I'm currently getting a the current date in a var called
currentDate but it returns at 11 Dec 2008.
Thanks in advance.
IThanks,
I am using : <mx:DateField id="effective_date"
formatString="YYYY/MM/DD"
text="{dgMessages.selectedItem.effective_date}" showToday="true"
enabled="true"/>
so after the user chooses a dates everything is fine.
The customer wants todays date to already be populated in the
datefield when the application loads and that's where I have my
problem.
I get my current date:
var currentDate:Date = new Date();
but I need to format that date from 12 Dec 2008 to 12/12/2008
and create another date var called endDate adding 60 days.
I assume I must convert this vars to strings since I get an
error when attempting to display them in the datafield.
I hope I explained that well enough. -
Convert a String Mar 7, 2008 to date in yyyy-dd-mm format
Hi,
Please help me to Convert a String Mar 7, 2008 to date in yyyy-dd-mm format..
have to store that Date in SQL Server date field in yyyy-dd-mm.
Regards,I done this and got the desired result 2008-03-07. Thanks... know checking it with my code :)
String ss = "Mar 7, 2008";
//System.out.println(ss);
try{
SimpleDateFormat dateFormat = new SimpleDateFormat("MMM dd, yyyy");
Date date = dateFormat.parse(ss);
System.out.println(date.toString());
System.out.println(new java.sql.Date(date.getTime()));
}catch(Exception ee)
ee.printStackTrace();
} //endsEdited by: bunty_india on May 8, 2008 8:09 PM -
Change display Date format from 06.2011 to june 2011 in output of Query
Hi All,
Change display Date format from 06.2011 to june 2011 in output of Query Execution. i used time charcteristics 0calmonth in query, output display is coming 06.2011, i want to display output in june 2011 format, anyone tell me how to convert this Date format.Hi Nandish,
as tibollo said you just need to mark 0CALMONTH with text in RSD1.
Kindly note that you don't need to do data load for this object.
It will automatically derive by system.
Just change the Info object 0CALMONTH in RSD1, Go to Master Data/text column and check mark on with text.
Then activate it.
Regards,
Ashish -
How to display date in dd-mon-yyyy hh:mm am/pm format
Hi,
I want to display date in dd-mon-yyyy hh:mm format in OA Page. Can any body pls give me sample code that i can write in the controller.
Regards,
RamThe date format in OAF Pages is controlled by profile ICX: Date format mask.This profile can be set at site as well as user level for the individual users to set the Date format.
But I would advice not to go for setting different profile values at user level, because i remember some old threads, where seeded Oracle pages fail, as code their is not generalised to handle date formats.
--Mukul -
To Display Date format YYYY/MM/DD in Report
Hi All,
I wrote start routine code for field Document Date(ZDOC_DATE) to display date format YYYY/MM/DD ,but it displaying as 20090212.But my requirement is the date format should display 2009/02/12.
Please find the below code which i have written,
data : v_month(2) type n,
v_year(4) type n,
v_day(2) type n,
v_Doc_Date(8) type c.
v_month = ITAB-DOC_DATE+4(2).
v_year = ITAB-DOC_DATE+0(4).
v_day = ITAB-DOC_DATE+6(2).
concatenate v_year v_month v_day into v_Doc_Date.
result value of the routine
RESULT = v_Doc_Date.
Can any one please suggest to display the date format as 2009/02/12.
Thanks in advance
karuna.Hi Rathy,
As per your suggestion i have changed the document date lenght 10 & changed code ,the issue has been resolved now..date format showing 2009/03/22.
data : v_month(2) type n,
v_year(4) type n,
v_day(2) type n,
v_Doc_Date(10) type c.
v_month = ITAB-DOC_DATE+4(2).
v_year = ITAB-DOC_DATE+0(4).
v_day = ITAB-DOC_DATE+6(2).
concatenate v_year '/' v_month '/' v_day into v_Doc_Date.
condense v_Doc_Date.
result value of the routine
RESULT = v_Doc_Date.
Thanks for your quick response.
Thanks to all.
karuna -
Hi all
The date column contains values such as 31-12-4712, 10-12-2012, (real date) etc.
In the output (tab delimitted format), I need to put Null for 31-12-4712 and display dates otherthan 31-12-4712 as actual values
Can I use decode to achieve the above or is there is a better method to achieve the above
Thanks in advance
regards
annaHi,
Oneway
with dat as(
select to_date('31-12-4712','DD-MM-RRRR') x from dual union all
select to_date('10-12-2012','DD-MM-RRRR') from dual)
select
case when x=to_date('31-12-4712','DD-MM-RRRR') then
null
else x
end x
from datTwinkle,
I think with decode it will change the return type to varchar.
Decode might not be the ideal way (but as always it depends :) )
with dat as(
select to_date('31-12-4712','DD-MM-RRRR') x from dual union all
select to_date('10-12-2012','DD-MM-RRRR') from dual)
select
case when decode(x, to_date('31-12-4712','DD-MM-RRRR'),null,x) >'00-00-00' then
to_char('GONE')
else
to_char(x,'DD_MON_YYYY')
end y
from datRegards,
Bhushan
Edited by: Buga added decode example -
X:InputCalendar and format of displayed date
I am using a simple <x:inputCalendar> component which works fine, but the format of the displayed date (the date that was selected from the popup calendar), is not formatted in the way I want it.
I want the format dd.MM.yyyy. I've tried to put a
<f.convertDateTime type="date" pattern="dd.MM.yyyy">
but nothing seems to happen.
I have tried different patterns as well.
It only displays the MM/dd/YY.
Is it possible to change this at all? Has anybody done the same thing?Well stupid of me.
Didn't see the popupDateFormat.
Solved! :)
Maybe you are looking for
-
Doing my InDesign graphs in Flash instead of Illustrator
Hello! Illustrator's graph tool sucks. It's like a remnant from the early 90s. For instance, because I require my graphs to look a bit more pro than the default - every time my data changes - I have to redesign all my graphs from scratch. So I was th
-
Blank screen, Intel Mac mini, Samsung P23700 LCD monitor; HELP!?!
I just got a new 23" Samsung LCD monitor and hooked it up to an Intel Mac mini. Turning on the system results in a blank screen with the monitor simply displaying a dialog box that seems to show that it is trying to figure out if the incoming signal
-
Hey, I think I did something stupid. When my system was upgrading, I exited the terminal without the programs being fully installed correctly, but now when ever I type sudo pacman -Syu it says my local database is up to date. I've cleared the pr
-
Hi All, I am getting a RTP Interface error when i execute my RTP interface. Below is the error message-: "Error X_WRTPOUT-ICODES in ISU_RTP_RTPRESVAL_CREATE when accessing RTP component &1 period &2" This error message appears because i havent assign
-
ITunes music for non-iTunes players?
hi, i see that this iTunes plus says that you can use the new type of music for other non-iTunes players? Basically I play a video game and that game has it where you can play MP3 files in the game. However it does not support traditional iTunes purc