Trying to Format Date object to what I want should I be using a Date or Cal

I am trying to get a simple date to be written into the body of a webpage I what to format the date but there's is now distinct way to do this
can you help me?

Check this out.........
import java.text.SimpleDateFormat;
import java.util.Date;
public class DateFormatTest
public static void main( String[] cmdArgs )
throws Exception
SimpleDateFormat sdfInput =
new SimpleDateFormat( "yyyy-MM-dd" );
SimpleDateFormat sdfOutput =
new SimpleDateFormat ( "dd-MMM-yyyy" );
String textDate = "2001-01-04";
Date date = sdfInput.parse( textDate );
System.out.println( sdfOutput.format( date ) );
} // main
} // class DateFormatTest
Enjoy ;-)

Similar Messages

  • BAM: Data objects cannot be edited while they are in use.

    Hi all,
    When I try to edit the layout of an data object I'm getting the error: BAM-04003: Data objects cannot be edited while they are in use.
    I have the Active Viewer and Studio closed.
    How can I do this?
    Thank you in advance.
    Kind regards,
    CD
    Note: Oracle BAM version: 11.1.1.3

    Plans are not supported in 11g. Look if there are any alerts are defined on the data object that you are trying to edit.
    Go to BAM Architect - Alerts page
    or Go to BAM ACtiveStudio - Alerts tab.

  • HT5815 The most important piece of info about an update I need is how much data does it require. I am travelling and using prepaid data. I cannot even consider an update until I know how much data it will use. Please provide this information.

    The most important piece of info about an update I need is how much data does it require. I am travelling and using prepaid data. I cannot even consider an update until I know how much data it will use. Please provide this information.

    http://www.apple.com/feedback/macosx.html

  • What is an appropriate method to use spool data for further processing?

    Hello SCN!
    First of all, i am new to both: ABAP & SCN. So please be considerate
    I have a given spool and want to search for specific error lines in it to use the information for futher processing. I already serached for answers, but maybe with the wrong keywords. Therefore i have some questions:
    What is the basic principle spools are stored in the SAP-System? I already found the tables tsp01, tsp02... but i dont understand the basic concept. For example i dont know where the spool content itself is provided.
    What is the best way to get spool data in my ABAP program? I testet RSPO_RETURN_ABAP_SPOOLJOB with a positive result, but i am not sure if this is a good way for large spools. And maybe there are better ways i would be pleased to hear.
    Is it common to use spools in the way i plan it, or must i rethink my approach. Catch my lines in the spool generation process for example, but this would be pretty hard in my concrete case...
    I am looking foreward to your suggestions and i am thankful for every input.

    What is the basic principle spools are stored in the SAP-System? I already found the tables tsp01, tsp02... but i dont understand the basic concept. For example i dont know where the spool content itself is provided.
    Spools and information on those are stored in database and sometimes in file system (AL11)
    Header entry in table TST01 (TemSe objects)
    Object associated with the header entry; it can be stored in the file system or in the database table TST03 (TemSe data of the object)
    Entry in table TSP01 (spool requests)
    Entry in table TSP02, if output requests exist
    What is the best way to get spool data in my ABAP program? I testet RSPO_RETURN_ABAP_SPOOLJOB with a positive result, but i am not sure if this is a good way for large spools. And maybe there are better ways i would be pleased to hear.
    This FM will perform well for ABAP list, and you may get problem with spools generated by tools like Smartforms or Sap Script
    Is it common to use spools in the way i plan it, or must i rethink my approach. Catch my lines in the spool generation process for example, but this would be pretty hard in my concrete case...
    For error log processing, look at tools related to a transaction as SLG1, and documents like Create application log. Use of spool report if manual processing expected.
    Regards,
    Raymond

  • BAM-04003: Data objects cannot be edited while they are in use.

    This message is shown when, while Active Studio is opened, I open Architect and I try to edit a data object layout.
    So I close both, do logout and try again, this time only with the Architect open, but the message is shown again.
    Why this occur? What to do to solve this "bug"?
    Thanks.
    Luciano Gomes

    Problem solved!
    It was not a "bug". I'd created an alert and it was activated. This blocks the data objects editing.
    Deactivated the alert, I can edit normally.
    Luciano Gomes

  • What's the default compression DB uses on data?

    I read that prefix compression is used on the keys. But what about the data values? We've been trying out in-memory databases and the memory usage we're seeing is way less than the data we're putting in; without even considering the keys and data structure overhead. For instance, with a billion 64 bit integers as values stored against keys that are 10 to 16 bytes long, top is showing resident memory usage of around 5 GB. That seems almost too good to be true. Is there some hidden cost we're not looking at?

    data value compression needs to be done at the application level.  We do prefix compression on the data keys only.
    thanks
    mike

  • Bootcamp utility in OSX Lion tries to format my Drive when i only want to download the support software for my existing install...

    So i have a bit of a problem...
    im using a Mid 2009 13 Inch Macbook Pro in dualboot.
    Im running OSX Lion and Windows 8 Consumer Preview in dual boot, no problems...
    However i only have bootcamp 3.x software on my Windows install and i want to install 4.x ...
    i know that to get the 4.x software i have to use the Bootcamp utility in Lion to download it, here is where the problem is...
    i run the utility and check the box next to download support software and uncheck the rest (i dont want to format my install or remove it) and im prompted for a save location, which i set to my desktop (because i can read it from windows). it then informs me that its trying to format my Drive...  My System drive!?  all i want is the software, nothing else...
    is there a way i can download it directly? such as i direct link to the software from the servers?

    Read carefully. You have to download the software to a FAT32 formatted USB flash or hard drive.

  • What are the pros and cons using Active Data Guard vs Data Guard?

    My understanding is that Active Data Guard is an additional database option for Oracle 11gR2 Enterprise Edition. I need to know the pros and cons using Active Data Guard vs Data Guard in order to decide whether to get pay extra for the Active Data Guard.
    Thanks for any help.

    Hemant K Chitale wrote:
    Before jumping in to Active Data Guard, one needs to evaluate :
    a. Is there really a need to run queries on the Standby ? The Standby could / should be at a remote site so queries are "across the network". Depending on the nature of the queries and the volume of output, the "performance" of the queries may not seem to be the same.
    b. If the database is not in Maximum Protection mode, the data "seen" at the standby may not be in "real-time" synch
    c. Not all applications are truely read-only when querying. Some applications use "jobs" that write to tables when querying. Such would not work with Active DataGuard. (example : EBusiness Suite). There are very complicated ways of handling this -- and one needs to consider if the complications can be introduced and supported.
    Over the network accessing standby read only is really not an good idea, I think no one will compare performance with primary and standby,
    But some of them they want to validate data which are very critical, as it is matching with primary or not, Its an added advantage with ACTIVE DATAGUARD
    Prior to that until unless stop MRP, open database and then we need to validate, So there is an interruption of recovery, I can say its also an advantage where there is no interruption of recovery.

  • What's hardware should upgrade for Using Premiere CS4 to editing (AVCHD)m2ts file?

    What's hardware or software should upgrade for Using Premiere CS4 to editing (AVCHD)m2ts file?
    1st question: when i try to do editing by using Premiere CS4 AVCHD sequence timeline, the edting monitor seems not smooth (like wearing goggles) & delay, and when i use AME to encode m2ts file (which not yet edit) to AVI file (about 1 hour), it take 2h 13min to finish, is it normal?
    2nd question: i use mpeg2 HD 1440 file to do eding, the edting monitor also not very smooth but better than using m2ts file, after editing done, i try to encode these mpeg2 HD 1440 file (which edited about long 1 hr) to a New file mpeg2 1440 X 1080i HQ or even mpeg2 Pal DV HQ file, the encoding was not runthe encoding after wait for half an hour. How many hours it take usually????
    3rd question: i use m2ts file video file to export as a Bitmap, 1 frame 1 picture bitmap, it take long time too, about 1 or 2min to finish encoding, if i export more than 1 picture, it take even more time, i have experienced it, 3 or 4 pictures need about 10 or 15 min to finish encoding. i used to using mpeg2 HD 1440 file (which edited file) to export frame as picture, it not run the encoding at all. WHY ????
    i'm new in Premiere CS4,so i got many question about Premiere CS4, usually i use Premiere Pro 1.5 version
    my computer is: Intel (R) Core (TM) 2 Duo CPU
                             E7400 @ 2.80 GHz
                             2.80 GHz, 2.00 GB RAM
                             Graphic Card: ATI Radeon X1650 series
                            2 Hard Disks in my computer (C Drive is 300 GB (not sata) , D Drive is 500 GB sata)
    4th Question: Premiere CS5 & Premiere CS4 which one is better ???
    5th Question: What's different ATI Radeon and NVIDIA Card, which is better, which u suggest to. What is different Graphic Card and Video Card ?? Should i install HD Video Card ????

    I don't think a core-2 will work very well with AVCHD... you need at least an Intel i7 920... or whatever is current
    My CS5/AVCHD 1st Impressions http://forums.adobe.com/thread/652694?tstart=0 includes a link to the computer I built... since the GTX 285 is no longer sold, I would now go with a GTX 460 or whatever is the current "best bang for the buck" - AND I would buy 4Gig-by-3Sticks memory to be able to expand from 12Gig to 24Gig if needed
    For my home hobbyist, family movies (which means that I am not trying to recreate Star Wars with video effects or many layers) AVCHD editing is "as smooth as spreading warm butter on hot toast" (also the MP4 video from wife's Flip camera)
    My 3 hard drives are configured as...
    1 - 320G WD Win7 and all programs
    2 - 320G WD Win7 swap file and PPro projects
    3 - 1T WD all video files... read and write

  • What programming language should a beginner use for developing apps for mac and I phone etc

    Hi all
    I have just made the transition from pc to mac, years a go I dabbled in visual basic and was going to give it another go but having made the move to mac, now owning an iMac/ iPhone and iPad I am now thinking I would be better off learning a programming language that would enable me to create program's /apps for apple products. Can someone please point me in the right direction.

    If you want to develop apps natively, you'll have to go with Objective-C (language), Xcode (IDE), and the Cocoa Touch libraries. Objective-C is a super-set of C. So, if you've no background in C, start there. In fact, here are three books I recommend:
    Dave Mark, Learn C on the Mac:
    http://www.amazon.com/Learn-C-Mac-Dave-Mark/dp/1430218096
    Aaron Hillegass, Objective-C Programming: The Big Nerd Ranch Guide:
    http://www.bignerdranch.com/book/objective-c_programming_the_big_nerd_ranch_guid e
    Joe Conway & Aaron Hillegass, iOS Programming: The Big Nerd Ranch Guide (3rd Edition):
    http://www.bignerdranch.com/book/ios_programming_the_big_nerd_ranch_guide_rd_edi tion_
    Dave Mark's book covers C, and you probably don't need all of it. Once it gets to really elaborate storage issues (for which you'll end up using Core Data on iOS), you can skim. On the up side, you have some programming experience, which will make learning C easier. On the downside, it's in VB, which isn't as similar to C as most other languages are. But, it's a start.
    Hillegass covers some basic C in his book on Objective C as well. So you might can start with that. The final book only touches on Objective-C lightly and is really about using the iOS frameworks to do real work. It's entirely project based and will get to you building things and testing them and really creating iOS apps.

  • What java version should I be using, What java version should I be using

    I updated to the new operating system.  Then I was advised I had to upload to a new java which I did and now when I try to do my work on line using a web site that requires java it wount work.

    In Safari under Preferences : Security: Plug-ins, is where I would look - I am not and can't install 10.9 as mine is too old for even ML.
    This page has what you want and screen shots. I got there from the other support page and search on "Safari 6 Java"
    http://support.apple.com/kb/HT5678
    http://www.apple.com/support/safari
    http://support.apple.com/kb/index?page=search&src=support_site.home.search&local e=en_US&q=Safari%206%20Java

  • HT4623 I want to update software using cellular data?

    How can I update my iphone5 software using cellular data?

    you can't.  use WiFi or iTunes.

  • Data type: variables of this type should hold maximum amount of data

    Dear all,
    In SAP we have any field like Richtext field in Lotunotes, which can hold anyamount of data, I mean it can store arbitary amount of data based on the input.
    I have came across certain fileds called LCHR, but it has got a limitation. Fields of this type must be located at the end of transparent tables (in each table there can be only one such field) and must be preceded by a length field of type INT2.
    But I need to know about a  field which can hold maximum amount of data at a time.
    Regards,
    Giri

    Hi Ramada,
    starting with ECC600 and in all unicode systems the length of a character is system-dependent.
    Fields of type STRING store an arbitrary amount of characters, type XSTRING stores an arbitrary amount of BYTES.
    AFAIK a Notes Richtext field will hold much more: formatting, data and document type an what else.
    There is nothing directly comparable in ABAP.
    Regards
    Clemens

  • What display profile should I be using to edit photos in Photoshop RBG?

    I just realized that as I'm doing photo editing in Photoshop, I'm not sure that my display is accurately showing me what the colors are. If I'm doing RGB in Photoshop, should I keep the Color LCD profile in Displays, or should I switch to an "RGB" one? Any suggestions? I like the way the regular one looks.

    The best profile to use is the one that most closely matches the characteristics of your display. Apple ships generic profiles like "Color LCD" that represent the average of the displays coming off the assembly line. Some profiles, like "Adobe RGB" or "sRGB" are intended for use as working color spaces in Photoshop and other photo editors and must not be assigned as a Display profile because they don't match the spectral/tonal response of your monitor. Stick with Color LCD, or make a profile specific to your monitor by using a calibration device such as a Huey or Eye-One to objectively calibrate your monitor. You can try the Calibrate button in the Displays dialog box, but the problem is that human eye calibration is notoriously inaccurate because your eye automatically compensates for color casts.
    For similar reasons, how it looks is not very relevant. It may have no bearing on how accurate the grays and colors are, colorimetrically speaking.

  • I have an iPhone 4 and have upgraded to iOS 6.  Based on posts regarding battery life after this update, I want my setting for "Use Cellular Data for" iCloud Documents to remain off.  However, it keeps turning back on...can I avoid this?

    I also wanted to note that this setting goes back to On even if I have not turned off the phone...but it also does this when the phone is turned off and then back on.

    I am seeing the exact same thing on iOS 6.0.1 on my iPhone 4 and iPhone 4S.
    Steps to reproduce:
    In Settings:General:Celluar, check to be sure the following is off:
    iCloud Documents
    iTunes
    Passbook Updates
    Reading List
    Check back to the same screen after 5 minutes (while not on Wifi) and iCloud Documents is back on.
    It's burning through data like mad.
    I know I could kill iCloud on my devices or turn off Cellular data, but neither is a solution.
    Apple, are you aware of this? I think most people assume that users just don't know how to turn this off. That's not the case, it's coming back on by itself.

Maybe you are looking for

  • Production orders creation

    Hello! Has anyone tried to created a number of production orders with LSMW? If so, can you just reccomend any particular method... because I've found none. Writing own procedure isn't very useful... P.S. Using 4.7 system. Yours respectfully, Anton.

  • Executing "bring to center" on a free cursor in a log XY graph brings the cursor to the top rim of the graph (instead of the center)

    Dear support, dear LV users, selecting "bring to center" for a free cursor in a XY graph does not bring the cursor into the center of the graph, but instead the command brings it to the mean/average value. This is not an issue for a linear mapping of

  • What was wrong with OS 10.5 airport settings

    I'm wondering what was specifically wrong with the networking built into 10.5. I noticed that one of the fixes says "Improves compatibility with third-party wireless wide-area network devices". What compatability issues did they resolve?

  • PR Standard WF WS00000038 problem

    Great Gurus Hi to all there are couple of things. i am using WS00000389 ( standard workflow PR - item level release ( with classification ) . Business Object BUS2009. I copied this workflow and worked on it. At first it was not running because elemen

  • I got defect N70? or N70 have a defect?

    hello, i'm nokia user from indonesia, just a few days ago i bought N70 the standart edition one(not the music one). i have some problem with phone that i need to ask.. as i know the charger of N series is different with the usualy nokia. i have some