Is it possible to have mm/yy format?

Hi,
In our application, we need only month and year. I checked DateFormat class and it expects dd/mm/yy.
I don't know how to parse string if user enters mm/yy.
Thx for help in advance!

Here's an example using SimpleDateFormat:import java.text.*;
import java.util.*;
public class DateFormatTest {
   public static void main(String[] args) {
      SimpleDateFormat form = new SimpleDateFormat("MM/yy");
      StringBuffer sb = new StringBuffer("");
      // test formatting
      System.out.println(form.format(new Date(), sb, new FieldPosition(0)));
      // test parsing
      Date d = form.parse("10/01", new ParsePosition(0));
      System.out.println(d);
}

Similar Messages

  • Is it possible to have an attachment within a pdf doc print at the same time the main doc prints?

    Okay, so this may be kind of a weird question.  We have some users who are wanting to add a page to an already existing xml document and correct me if I'm wrong, but I've read that it's not possible to add/delete pages from a pdf that's in xml format.  Since that is not possible, I have added the page to the xml document as an attachment.  Now what I am wanting to know is if it is possible to have the attachment print out at the same time as the main document.  We are using the latest version of Adobe Reader and I have access to Adobe Acrobat Standard 9 & 10 and then I have access to Adobe Acrobat Pro 7.  I've been unable to find anyting via google or by searching this forum so hopefully I'll draw out some kind of smart cookies and we'll get this figured out.  I appreciate any and all input!
    Thanks,

    I know of no way to do this with Reader or XML.

  • Pages document "could not be read" bc. it "does not have a valid format"

    The document in question was properly saved and Pages was not open when my computer hung as it was shutting down. MS Word would not quit or force-quit and I had to hard restart the computer. When I later tried to open this Pages document, which I had been working on before Word froze, Page would not open it and responded with the error message: "This document "document_name.pages" could not be read. This document does not have a valid format." When I looked at the document in question I noticed that its file size was 0KB. I have no idea why this happened, but I suppose it has to do with my computer not shutting down properly and perhaps with Word freezing. If I repair my drive permission, re-index it, anything, will it help? Just a note on the status of this machine: spotlight stopped working earlier this morning and I was waiting to finish this document before repairing disk permissions and trying to fix that issue with Spotlight.
    In the meantime I have tried various fixes. First I tried to change the file ending to .zip, unpack it and open it. Then the same, but this time I tried to view package contents. It doesn't show up in the contextual menu as even having a package to show the contents of. The file is effectively empty, but I don't know where the contents went! The funny thing is that the MS Word doc was recovered automatically. Is it possible that Pages doesn't have an auto-recovery mechanism?
    I need this file urgently, or at least the text in it. It is the bibliography of an important paper due tomorrow at 5 pm.Any advice or suggestions would be greatly appreciated.
    BTW, I have used a file-recovery program in the past. It is called "Stellar Phoenix" and it worked wonderfully to find a Word doc that I accidentally deleted. It can't find .pages document though. In order to do so, I would need to tell the program what the average file size is, as well as the header information as follows. "Header (in hexadecimal)" "At Offset (in decimal)". I have no idea what this means, but if I could insert it, perhaps it could find the lost data. Should I have it search for .pages, .zip, .xml? I'm at a loss, but I know that it doesn't recognize .pages. In the meantime, I sent a support email to them and will see what happens.
    Thank you for your help.
    David

    I can't respond before.
    When the system say that your file size is 0KB, it means that nothing was saved. Only a file descripto exists.
    So, there is nothing to recover.
    Given the time the system crashed, you may have :
    (1) a simple descriptor with nothing written
    (2) a folder with every or only some of the required files.
    In this case, Phoenix is useless : it's unable to revive a folder.
    (3) a flatfile (a compressed version of the folder named above). It's only this kind of file which Phoenix may revive.
    With a bit of luck, Phoenix would be able to revive the index.xml file which was in the original folder created in the temporary folder.
    This file starts with :
    <?xml version="1.0"?><sl:document xmlns:sfa="http://developer.apple.com/namespaces/sfa"
    or
    <?xml version="1.0"?>
    <sl:document xmlns:sfa="http://developer.apple.com/namespaces/sfa"
    The minimal size for a Pages index.xml file is : 520038 bytes.
    If you retrieve the index.xml file, we may try to rebuild an usable package.
    Ask the recovery tool to transfer the recovered file on an other media.
    If the document embedded pictures, the index will give their path and their size which may be useful to recover them.
    Yvan KOENIG (VALLAURIS, France) lundi 1 novembre 2010 10:27:44

  • Is it possible to maintain multiple payment formats with a single Program

    Hi,
    Is it possible to maintain multiple payment formats with in a single program.
    For example let us assume that we have created 2 payments formats as 'XX-PAY1' & 'XX-PAY2'.
    When i select the parameter as '1' then 'XX-PAY1' has to run else 'XX-PAY2'.
    if its possible could you please tel us where to define the parameters in Setups.
    Many thanks,
    Zaheer S

    nazzu wrote:
    Hi,
    Is it possible to maintain multiple payment formats with in a single program.
    For example let us assume that we have created 2 payments formats as 'XX-PAY1' & 'XX-PAY2'.
    When i select the parameter as '1' then 'XX-PAY1' has to run else 'XX-PAY2'.
    if its possible could you please tel us where to define the parameters in Setups.
    Many thanks,
    Zaheer SSounds like an Apps question. Start here: https://forums.oracle.com/forums/category.jspa?categoryID=3

  • Is it possible to have Thunderbird send an e-mail automatically when a message with a specific subject is received?

    Is it possible to have Thunderbird send an e-mail automatically when a message with a specific subject is received?
    I basically want to create a rule that will send an automatically crafted form e-mail to the sender when I receive an e-mail with the subject line "New Swimmer". Is this possible?

    Thank you Todd, I was able to get it to work but I do have a few more questions...
    1) When I tested this, at the top of the message, before any of the text I created, this showed up: This is a multi-part message in MIME format. --------------040406040801080102080500 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit
    2) After the signature line, this showed up: --------------040406040801080102080500 Content-Type: image/jpeg Content-Transfer-Encoding: base64 Content-ID: /9j/4AAQSkZJRgABAQEAYABgAAD/4QAiRXhpZgAATU0AKgAAAAgAAQESAAMAAAABAAEAAAAA AAD/2wBDAAIBAQIBAQICAgICAgICAwUDAwMDAwYEBAMFBwYHBwcGBwcICQsJCAgKCAcHCg0K CgsMDAwMBwkODw0MDgsMDAz/2wBDAQICAgMDAwYDAwYMCAcIDAwMDAwMDAwMDAwMDAwMDAwM DAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAz/wAARCAC5ApUDASIAAhEBAxEB/8QA HwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQID AAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6 Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWm p6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/
    (It was actually much longer than that)
    Is there anyway that I can get that to go away? I obviously would prefer a nice, cleanly formatted e-mail to be sent just like I would send if I were creating it on the spot.
    Thanks,
    Evan

  • Is it possible to have the lid open on a MacBook Pro connected to a Cinema Display and have the Mac display blank with the Cinema in highest definition?

    Is it possible to have the lid open on a MacBook Pro connected to a Cinema Display and have the Mac display blank with the Cinema in highest definition?

    Hi,
    Create a play list that you wish to burn. Select playlist, the file from main menu which gives to an option to burn the playlist. A pop up box appears allowing you to select burn speed and disc format.
    Jim

  • Is it possible to have the time code follow the footage on playback?

    Hey everybody.
    I searched the forums, but I didn't find anything relevant to my question.
    My question is, is it possible to have time code follow your footage on playback?
    For example, when I scrub along the clip, the clip will tell me the entire length at the first thumbnail, but then as I scrub along, there is no time code, so I am unable to know how far along the sequence I am.
    I was talking to a faculty member, and he was told to grab certain portions of the footage, and he is wondering if this is possible within iMovie '09. I know that this feature is available in iMovie '06 and Final Cut Pro (of course), but I just started working with iMovie '09 last week, and wanted to know if this is possible.
    Any help is appreciated, and please let me know if I need to further clarify my question.
    John

    If you click VIEW/SHOW PLAYHEAD INFO, you will see the timecodes as you scrub. (Consumer timecodes, not pro timecodes).
    This works if you imported your footage from a camcorder, either miniDV or AVCHD.
    However, if you have imported an analog file, or saved a DV file to a QuickTime File, you may just see the file creation date in VIEW PLAYHEAD.
    However, there is a trick to getting even these clips to display timecodes if you know the start time.
    First pick a clip. Make a copy and drag it to your desktop, just so you don't lose anything.
    Rename this copy in the following format clip-yyyy-mm-dd hh;mm;ss.current file extension.
    For example, clip-2001-07-14 09;30;45.mov (note the space between the day and the hour)
    This would be a .mov clip that starts with the first frame at July 14, 2001 at 9:30:45 AM
    Then import the clip into iMovie. You now have timecodes at the playhead.

  • Is it possible to have delimited output using burst distributed mode

    I am aware that it is not possible to have burst mode and delimited output using reports. I am using reports 9.0.4.0.21. Are there any work arounds ? Is it possible to use ascii, and then use the destype=printer, but the printer destination will be a file location or direcotory ? Any suggestions with this ?

    Just to make it clear, if the question isnt. I am trying to hae burst mode distribution, but i am not able to use the feature in Oracle Reports, since delimited output is not supported. I would like to use the burst mode distribution because of its advantages, however since that is not supported the only other alternative in burst mode is using format=ascii. But that format, as much as i am aware, is only for printing, since the mode has to be character. Is it possible to have any workarounds where the mode=character, but the device which reports points to is actually another file location ? Has anybody got any interesting ideas ?

  • Is it possible to have email validation?

    Is it possible to have two email fields so that a user must enter their email twice in order to validate that they typed their email correctly?
    Or any other method for validating emails are correct?
    Thanks.

    Sorry we don't support such validation that checks that the same value was typed into 2 different fields.
    You can submit this as a feature request here: http://forums.adobe.com/community/formscentral?view=idea to help us prioritize our work.
    You can mark the field as Email type, which should help to validate that email in correct format ([email protected]).
    Thanks
    Roman

  • Is it possible to have Oracle to Sybase Logg shipping manually or automated

    Is it possible to have Oracle to Sybase and Oracle to SQL Log shipping manually or automated at certain frequency?

    Aman.... wrote:
    Hans Forbrich wrote:
    user8923738 wrote:
    Yes redo log shippingVery good. So you ship Oracle's recovery logs over to Sybase, und was wird damit am anderen Ende gemacht?I had to use Google Translate to understand the last part Hans :-) . Deliberately done to give a practical example of what is required when using different syntax/language/format.
    >
    Wish you a very happy holiday season and merry Christmas as well :-) .
    with best regards
    Aman....And my warmest wishes to my friend Aman, and all my friends, acquaintances and colleagues who inhabit OTN.

  • WAV files on an iWeb site -- is it possible to have these?

    Hi everyone,
    I've just created a new site with numerous audio files on it. It would seem at this point that MP3s/Quicktime are a pretty universal format, but a number of people have told me they can't open/run the audio for one reason or another.
    I'm wondering if it's possible to have have WAV files (probably compressed) on an iWeb site. I haven't really tried this yet, but it seems to me iTunes converts all audio automatically to an MP3/Quicktime format. In any case, I think it would be good to cater to the viewers who are on PCs. Any suggestions for a solution? You can view my site at: http://www.charlottemcmillan.com
    Thanks!
    MacPro   Mac OS X (10.4.9)  

    Thanks for checking out the problem. Actually, one
    user does have Quicktime, but got a message
    concerning "MIME" instructions
    Last I checked, windows don't use MIME type:
    http://en.wikipedia.org/wiki/MIME
    Even Apple had departed from using MIME type (AFAIK, OS9 truly use MIME, OSX???). So, I don't know what to make that.
    -- the jist of it
    being that his machine ordinarily uses something
    other than QT to open audio files, so the message
    asked him if he wanted to use QT to open all audio
    files from that point on. That kind of scared him
    away from saying yes, so he didn't get to hear my
    audio files.
    That's correct, WMP is the default media player in windows platform, so I don't blame him from freaking out.
    It comes down to have a windows machine with QT properly installed and have QT to be file extension associated (not MIME) for media contents.
    He is out of luck if he want to keep WMP as his default media player.

  • Since the ipad has dynamic moving backgrounds isn't it possible to have a slideshow background?

    IIt should be possible to have a slide show background since Apple does support the format so I think if we somehow can find the format they used and chge a slideshow to that format we should be able to make slideshow backgrounds? I hope.

    Hey Boxman, I'm guessing lack of interest. Think about it, once the novelty wears thin, just how much time would or do you really spend looking at your home page? Me personally, just enough to find the app I need and push the button. Besides, isn't the battery life on your iPod short enough for you? Dynamic backgrounds are one of the first things you turn off to conserve battery life! That said, it would be kinda cool, for a little while anyway. Like Stevejobsfan0123 stated go to Contact Us>Feedback, and tell Apple your opinion. Hope this helps. Cheers.

  • Possible to Have ToC Default to Show Only Top Level (collapse sublevels)?

    Howdy!
    I'll bet I'm not the only one wishing for this.  Let's say you're using Captivate 4's Table of Contents feature with a longish movie of Cp slides, which is chunked into bite-size sections content-wise.  In the ToC, though, you can't mimic that same organization scheme; at least, the learner would first need to collapse all the ToC folders you've created so they see only the top-level listing.
    This can be a critical issue:  keeping the at-first-glance list in the ToC brief enough to be inviting to learners, yet allowing learners to drive which details are currently visible.
    A movie's topical hierarchy could be along these lines, for example ...
    Section 1 - National Brands
    What are National Brands?
    Why Are They Important to Our Business?
    Working with Nat. Brands
    Practice Your Knowledge
    Section 2 - International Brands
    What are International Brands?
    Why Are They Important to Our Business?
    Working with Intl. Brands
    Practice Your Knowledge
    You'd like to organize the ToC to show only the section titles (1st level) and to suppress the 2nd-level detail (slide titles) until the learner chooses to expand the folder to see those details.
    I've tried things like grouping the slides into sections in the Storyboard view and organizing the slides into sections strictly within the ToC -- both to no avail.
    Has anyone solved for this need yet?
    I'm all ears, and you'd be doing learners of the world a huge favor.
    Thanks!

    Hi, Jim.
    Thanks for being 'on the case' and looking into this so quickly.  Your
    findings are encouraging, although my user base is generally working with
    IE 6 and FP8 or 9.
    Since the only thing I may influence is getting  IT to help push out FP10,
    I'm hoping it's more of a player- than a browser-version issue.
    I'll test things out by Monday and let you know the results.  Wish me luck!
    Dave
                                                                                    From:       Jim Leichliter <[email protected]>                                                                               
    To:         Dave Tressler <[email protected]>                                                                               
    Date:       03/26/2010 06:02 PM                                                                               
    Subject:    Possible to Have ToC Default to Show Only Top Level (collapse
                  sublevels)?                                                                                
    Dave,
    I just tested this on my local web server and it worked fine.  I created a
    blank project with 8 slides.  Created my TOC with grouping... 2 slides in
    each group.  I turned on self paced learning.  I tried with and without the
    widget and it picked up where I left off in either case.  See
    https://docs.google.com/leaf?id=0B86WuEq6SVwRNWIwMjhjODctMjE2Yy00MWE2LWI5YzEtMGQxYzNjOWQ0Z mI2&hl=en. 
    I published using FP10 and IE8 to view.  Notice any difference between
    your project and this one?
    Thanks,
    Jim Leichliter

  • HT1399 Why cant I create a playlist for my music/song videos? Continuous play is also not possible in the video app on the phone!!!! previously, prior to IOS 6, it was possible to have both music videos & songs mixed in the same playlist in the music app

    Why cant I create a playlist for my music/song videos? Continuous play is also not possible in the video app on the phone!!!! previously, prior to IOS 6, it was possible to have both music videos & songs mixed in the same playlist in the music app

    I am back with an update. I turned off Match on both the ipad and the iphone 5. By doing so I was able to sync my Iphone and ipad to itunes and store the music on my devices rather than the slow streaming.  So far this has fixed my problems with the iphone I have all my music, playlist, most of the album art and so on.  But the ipad is a different story.  I have the music and artist but not one playlist  I am sure Apple will have an upgrade soon that will address these issues they are usually very good about this. 
    Now have any of you experienced another problem that has existed as long as I have used faces in Aperture.
    I have over 200 faces and they are organized a-z problem is I have this going on A-Z folowed by a few that start over A-Z followed by another few A-Z and again a 4th time A-Z.  Imagine how difficult it is while I am showing someone the great features of my iphone, ipad and imac.  Which I do talk highly of all the time.  But how do I explain that even though their name starts with a or b or what ever they are not important enough to me to be in the first list of A-Z or even the 2nd or 3rd list of A-Z someohow they are in the 4th section of the list!!!!
    I have managed to get the Imac to fix this but for some reason the IOS devices do not.   Any ideas?
    Thanks Al

  • E72 - Possible to have more than 2 email accounts ...

    E72
    So is it possible to have more than 2 email accounts shown at the home screen?
    Currently one is set as primary and the other as secondary.. I have 4 email addresses I want shown at the main screen..
    Please help.

    jane999 wrote:
    Basically I want to share A1 with somebody else and we both use yahoo email. So I need to sign out before she can sign in. Any way to do that? 
    Thanks in advance for any help!
    You didn't specify whether you are using the "official" Yahoo mail app, or some other email application like K-9.  But either of those allow for the specification of multiple email accounts, and you don't even really need to sign in/out.  Once you set up the accounts within the app, just select the email account that you want to view.  It might be a little more problematic if you want to prevent each other from being able to see the other's email, however.

Maybe you are looking for

  • Slide Show embedded in the Home Page

    Hi. Does anyone know how or if iWeb can make an embedded slide show on a page? I want a series of images to cycle automatically on a page without a new window popping up or a user selecting the imges to change.

  • Org. Unit - List Values

    How do everyone, I have created a selection screen parameter based on objec-objid. However, when I run the program the parameter is not providing a drop down list containing all the organizational units within our org. structure. I know you can use t

  • Randomly corrupted installers

    We are developing a software suite called Omnitapps in Adobe AIR (sdk 4.5.1 build as 2.6) in FDT 4.5 Since a while now our installers we package with ant seem to get corrupted randomly, some times it works some times it doesnt. It seems to get worse

  • Adobe photoshop elements suddenly refused to open (launch)

    I had purchased Photoshop Elements 12 Editor for my mac laptop perhaps 1 or 2 months ago. It worked fine until last night. It suddenly keep saying "your application quit unexpectedly, do you want to re-open?" Either reopening or saying cancel and jus

  • MouseEvent and KeyEvent for JTable in JDialog is not functioning

    What is working for a JFrame not working for a JDialog ??? I created a JTable in JDialog and the mouse event is not working in JTable what I have to do ??? Edited by: amnonm on Apr 25, 2009 3:07 AM