Amicuk Programming Answers

Date Formating

-0001-11-30   Views:0


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.

The replay answer
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 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 - 64bi System: AIX 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 ' H:mm:ss'.  I[More]

How do i convert an AAC file into an Mp3 file on my New 2015 iMac? The option to "convert to mp3" isn't available in controls. Thank you.Click here and follow the instructions. (121248)Read other 3 answers [More]
I making a website and i want to know how to handle too many js in one page. And i want to add news ticker but js is conflict with someone <script src="js/ticker/1.8.jquery.min.js"></script> <script src="js/ticker/all.js" [More]
I have a Picopix240 that has a mini hdmi conection in the back. I have tried connecting it to the apple TV but it says that there is no signal. Has anyone managed to get this working? Thanks [email protected]   Thanks for your obvious comment about basi [More]
I've already created an app via InDesign and DPS App Builder, but the program don't let me download the app! It says I have to activate the produt with a serial number, but since I bought a Creative Cloud membership, I don't have any number. Any one [More]
java.lang.InstantiationException: Error parsing META-INF/application.xml in C:\oc4j_extended\j2ee\home\applications\webapp: Fatal error at line 0 offset 0 in file:/C:/oc4j_extended/j2ee/home/applications/webapp/: The encoding "GBK" is not suppor [More]
I verified the backup using the Oracle VSS Writer of Oracle11gR2. In order to check the behavior of the Oracle VSS Writer, I want to output the trace log of Oracle VSS Writer. However, there is the following description in the document, there is no d [More]
I recently transferred a lot of ttf and otf fonts (originally purchased for and used on a Windows NT machine) to Mac Book Pro. When I try to use the fonts in Abode CS5.5 (In illustrator) I'm told I need a license. Won't let me embed the fonts, for ex [More]
Using PS CS3, I opened a few JPG images taken with a Nikon D100 a few years ago. I copy/pasted one image on top of another, flattened it and saved as a PSD. Later on, when I double-click on the PSD, PS opens and I get a script alert: "Nikon Corp, Nik [More]
My signatures do not show properly when I reply to messages. The signatures go below the original text. I did check place signature above quoted text, but still the sig. goes to the bottom of the message I received instead of my reply. Any advice on [More]
How do I deauthorize a user from Adobe Acrobate 9 Pro?Hi lculmone, Please see "How to deactivate and sign out" in Activation & Deactivation Help. Please let us know how it goes, or if you need additional help. Best, SaraRead other 2 answers [More]