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
I don't know what else to add it reads across the top web videos maps news shopping books more how can I add gmail to that list? I never use shopping I never use booksOK, so what you want is the ability to specify the default mail app to use when sha [More]
MacBook Pro (15-inch, Mid 2012) Processor: 2.3 GHz Intel Core i7 Memory: 4 GB 1600 MHz DDR3 Graphics: Intel HD Graphics 4000 1024 MB I've used 192.8 GB Operating System: 10.10.1 (14B25) YOSEMITE UPDATE I've been experiencing problems with my Macbook [More]
I am running Lion. Safari keeps opening multiple screens when I click on it, and I cannot shut them down. It is really crazy. What can I do?Hold down the shift key as you launch Safari.Read other 2 answers [More]
Three days ago I edited the text of one of the charities web site pages in Iweb. Saved published site changes. However changes didn't show after I visited the site using Chrome. I then saved again and published entire site and visited the site again. [More]
How can I get access to my work after the Remote Desktop Update 3.8.2 blocked my access through Citrix/CAG?Can you start Firefox in [[Safe mode]] ? You can also do a clean reinstall and download a fresh Firefox copy from http://www.mozilla.com/firefo [More]
I have upgraded my ipad 2 to latest operating system and the SIM card is now not found.. states 'No sim". Sim is installed and telecom provider shown in Settings. Was working fine until this upgrade!... How can this be resolved?1. Pull the SIM out an [More]
Hello....i cannot seem to find where or how to delete the settings i save on the individual tracks....i now have a list of easily 100...many of which are useless...where or how can i delete these settings? thanks -RobI assume it's the same for LE as [More]
Hi - hoping someone can help... I recorded a bunch of screenshots (and can't recreate the simulation so have to work with what I have)... I have a slide with an image of active window (it's a background image). There is also a mouse that appears (mov [More]
I keep a boat log on iCal - daily entries all with the same event title eg: Boat Log. How can I export or print a compilation of just those entries, sorted by date?Hi Elizabeth There are most probably several ways but I tell how I would do it: 1. Ope [More]
Bought Iphone Off of craiglist and it is not an att product  the iphone had a gci sims card in it . How do i unlock phone and change carriersYou contact the carrier it is locked to. Unfortunately, if it's actually a GCI phone, they do not offer unloc [More]