Sitemap

Amicuk Programming Answers

Date Formating

-0001-11-30   Views:0

Advertisement

Hi , I have a date in this format Apr 11,2002 . I would like to convert it to 4/11/02 and vice versa. Can anyone give a hand on this. thanksuse java.text.SimpleDateFormat See api doc for details. Use format() and parse() method to convert date. Examp

Hi ,
I have a date in this format Apr 11,2002 . I would like to convert it to 4/11/02 and vice versa.
Can anyone give a hand on this.
thanks

The replay answer
Advertisement
use java.text.SimpleDateFormat
See api doc for details. Use format() and parse() method to convert date.
Examples of patterns and results from API doc:
Date and Time Pattern  Result 
"yyyy.MM.dd G 'at' HH:mm:ss z"           2001.07.04 AD at 12:08:56 PDT 
"EEE, MMM d, ''yy"                              Wed, Jul 4, '01 
"h:mm a"                                             12:08 PM 
"hh 'o''clock' a, zzzz"                            12 o'clock PM, Pacific Daylight Time 
"K:mm a, z"                                         0:08 PM, PDT 
"yyyyy.MMMMM.dd GGG hh:mm aaa"  02001.July.04 AD 12:08 PM 
"EEE, d MMM yyyy HH:mm:ss Z"         Wed, 4 Jul 2001 12:08:56 -0700 
"yyMMddHHmmssZ"                            010704120856-0700 

Go to See the other 2 answers

Problem with Date formatting

Category:DefaultRelease time:2015-10-11Views:130

Hi Tim, I am facing some issues with formatting the date using XMLP. The following is the sample XML data file i am using: <LIST_G_HEADER> <G_HEADER> <QUOTE_HEADER_ID>1455</QUOTE_HEADER_ID> <QUOTE_NUMBER>2027</QUOTE_NUMBER[More]

How can we give the Data Format (File Type ) in Runtime

Category:DefaultRelease time:2015-10-11Views:130

Hi all, How can we give the Data Format (File Type ) in Runtime for the following method, cl_gui_frontend_services=>gui_download. Thanks in advance SriThere is a filetype parameter which you can set CALL METHOD cl_gui_frontend_services=>gui_download[More]

Need to convert into date format

Category:DefaultRelease time:2015-10-11Views:130

Hi all, I need to convert '2008-11-26T11:07:38-06:00' [YYYY]-[MM]-[DD]T[HH]:[MM]:[SS][TIMEZONE] in format 'YYYY-MM-DD HH:MM:SS'. Thanks in advance.> Thank you for your reply But it is giving me output as '26-NOV-08' And I want in format '2008-11-26 0[More]

Changing date format at reporting level

Category:DefaultRelease time:2015-10-11Views:130

Hello, Will u plz tell me how can i change the date format at reporting level? I want to display date in dd/mm/yyyy, but by default its showing mm/dd/yyyy. Delta is already loaded in the system, so i don't want to disturb regular data loading. Is the[More]

How to convert the numeric to date format

Category:DefaultRelease time:2015-10-11Views:130

HI ,      We have created the date KF and selected the data type as DEC-numeric or counter and add in the cube.       the data for this fields in the cube are in numerics like  734.504, but when we execute the report it is converted in to date format[More]

How to get Date Format from Local Object.

Category:DefaultRelease time:2015-10-11Views:130

Hi All, I am new to Web Channel. I need to know Date format From date of locale. suppose there is a date "01/25/2010" date in date field I want to get string "mm/dd/yyyy". Actually I have to pass date format to backend when I call RFC.[More]

How to change default Date format in BO 6.5 SP4

Category:DefaultRelease time:2015-10-11Views:130

A problem with date display has been reported to me by one of our users -  in BO 6.5 - since installing SP4. The default date format is now MM/DD/YYYY I have tried to recreate this on my PC and have been able to confirm that this is the case. Most of[More]

Date format issue in oracle database

Category:DefaultRelease time:2015-10-11Views:130

Hi, Back end : Oracle 11.2.0.2.0 Front end : Forms 11g In our application we are facing issue with TO_DATE('DD/MM/YYY') Date format conversion. Example: TO_DATE(P_date,'DD/MM/YYYY') giving the result as 20-Dec-0009 In the above eg the Parameter P_dat[More]

Problem with SQL*Loader and different date formats in the same file

Category:DefaultRelease time:2015-10-11Views:130

DB: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi System: AIX 5.3.0.0 Hello, I'm using SQL*Loader to import semi-colon separated values into a table. The files are delivered to us by a data provider who concatenates data from diffe[More]

Problem with date format mask 'D'

Category:DefaultRelease time:2015-10-11Views:130

I am experiencing an extremely thorny problem with the date format mask 'D'. I am trying to use it to check whether today is a Monday. The variable v_temp_day is set to sysdate. For the last 4 weeks the code has behaved erratically – giving a differe[More]

Problem with date format when ask prompt web-intelligence

Category:DefaultRelease time:2015-10-11Views:130

Bo XIR2 with 5 SP. Instaled on Windows 2003 with support Russian. Inside BO every labels, buttons - use russian. But when invoke web-report and Prompt appear there is problem with date format. Looks like korean format of date 'jj.nn.aaa H:mm:ss'.  I[More]

Hot
In the last month or so, I've had one problem after another with the Canon Online Store; from being unable to delete items from the shopping cart; to not being able to add "in stock" items; disappearing Wish Lists; and just now, I tried to add o [More]
Hi guys , i am desin xmas card for our customer from illustrator Cs4, I have  margin from the A4 . its 8 mm arround the Page. so every time i print from illustrator . it  doesent print 8mm gap. i guess this is some thing  the printer doesent understa [More]
Like Ora-01033,Ora-12514.leen wrote: Ora-12514 : is listener error you need to make sure is running up and no error in listener.log any database error can be avoided by monitor your database everyday . It's possible to check daily that listener is ru [More]
Hi, I have some doubts regarding fonts in PDF reports. when we create any XML report of PDF output type with RTF template, does the font used in the template has to be uploaded to the server? I have create a RTF template to produce PDF output with ar [More]
Yesterday I updates my software and when I restarted my computer I encountered several problems. 1) My hard drive icon is not shown on my desktop 2) I cannot open anything in the menus of the "Finder" toolbar" 3) I cannot not move or open a [More]
Hello, I am able to connect to the Three.co.uk mobile broadband using a Huawei E156G modem but when I try to slot the sim card in my Ericsson MBM F3705g, which is incorporated to my laptop, I can't get it to work [16:40:20][[email protected]] [/home/lcoume [More]
I am using PreE8 on Windows7 64-bit.  My sound card is....hmmmm, my spec sheet says "Integrated 7.1 Audio."  I don't know what that means.  Perhaps that is the "house" sound on my computer, a Dell Studio XPS 435MT (lack of a decent sou [More]
Hi, We are using SOA Suite 10.1.3.3.1. As part of error handling design, we have configured the fault policy such that BPEL flows will go to manual recovery in case of PL errors. From BPEL console we can retry/abort these instances. Is it possible to [More]
I believe this happened imediately after upgrading to iTunes 9, but it's possible that it started with 10.6 or 10.6.1 and I didn't notice. Other screen savers including iPhoto Library appear to work normally.Make a temp backup copy of the library and [More]
I am planning to upgrade from Dreamweaver CS3 to CS5. What will happen to my wesite created in C# aspx? Will the aspx DM extensions still work?SnakEyez02 wrote: Your pages will continue to work and you can continue to hand-code .NET pages.  As far as [More]