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]

Hello everyone..., I've a doubt in File...cos am not aware of File.....Could anyone plz tell me how do i read each String from a text file and store those Strings in each File...For example if a file contains "Java Tchnology forums, File handling in [More]
Hi, I installed the add on the server and it works fine. I installed on the workstatation and it installed without error. When I got to run a report through the Manage Crystal Reports screen on the server, the report prints fine. When I do the same o [More]
I've tried going through every sort of troubleshooting thing on here, it's got great advice but none of it worked Please can someone help, it would be much appreciatedOk I yhink the different computer thing is working, I connected it to my mums and i [More]
I've just finished creating a project in DVDSP4 in which I have created a set of layered buttons for each of my menus (which was no small achievement I can tell you!) so that a curved icon appears underneath each menu heading when it is selected. Whe [More]
Has anyone ever received a FIRST AID FAILED Error message? If so what do you do to complete Disk Utility-Repair Permissions? Here's an image of what the error process: Thanks in advance. SammyBoot with you install di [More]
Hi! I was wondering how to disable TextEdit's automatic termination after closing the last open document. It's so annoying! Thanks for everything! Chris.Quit TextEdit, launch the Terminal app in /Utilities, copy & paste this one-liner into the window [More]
I got my new iPhone 4 today and when I sync my phone a lot of my photos in the Photo Library just show up as blank white squares in the thumbnails. If I click on the individual squares it pulls up the photos and I can view them. Anyone else experienc [More]
I am creating a photo montage in IMovie 10. I like the Ken Burns effect, but want the photo to stop for a second or two before the fade. By the time the effect gets to the closeup, it goes right into the next fade. Help!What you do is to select the p [More]
How to restore the forgotten passcode of my phone ?? I have forgotten my password to unlock my phone pls helpiOS: Forgotten passcode or device disabled after entering wrong ...Read other 2 answers [More]
Can I rename photos after they are in Aperture?  The only thing I can find indicates renaming them during import only.If by photos you are referring to the masters then you can rename them but it is not the most convenient thing. You need to use Meta [More]