Need a date converter

Hi,
Does any one have any idea about dates formats conversions??
I mean by that having a converter that can take any date of any format and understands it and generates a unified format
example:
taking 22JUN as an input and generating ===> 22 \ 6 \ 2005
taking Sat, Jun 11 as an input and generating ===> 11 \ 6 \ 2005
taking 18-Feb-05 as an input and generating ===> 18 \ 2 \ 2005
taking March 03, 2005 as an input and generating ==> 03 \ 3 \ 2005
I can do the algorithm manually by myself but I want to know if there an existing API that does so or not?
and if there s an existing one how can i use, how can i identify the date format i want to generate.
If anyone has any experience with that or even have a good idea for it, please send it to me
thanks in advance,
bye

Do you know http://java.sun.com/j2se/1.5.0/docs/api/java/text/DateFormat.html ?
As for parsing any date, there is immediately the difficulty that 04/05/2005 means different days this side and that side of the atlantic.-(
Wenn's dann auch z.B. in Deutsch sein soll, wird es erst richtig anspruchsvoll.
Harald.
BioMed Information Extraction: http://www.ebi.ac.uk/Rebholz-srv/whatizit

Similar Messages

  • Need help in converting date format

    Hi,
    Need help in converting date format from 'DD-MON-YYYY' to 'YYYY-MM-DD' in an .rtf template as I believe xml publisher supports the date format as 'YYYY-MM-DD' only.
    Thanks,
    Raj.

    I got the same problem, anyone know how to solve this problem? I allready found some date functions on http://blogs.oracle.com/xmlpublisher/2008/09/date_functions.html . I also tried <?xdoxslt:month_name(xdoxslt:get_month(xdofx:substr(NEED_BY_DATE, 4,3)), $_XDOLOCALE), 0, 'nl-NL')?>, but then it returns a namespace error (Caused by: oracle.xdo.parser.v2.XPathException: Namespace prefix 'xdofx' used but not declared.). Anyone know how to fix this?
    Edited by: user11165753 on 7-dec-2009 23:50

  • About to back up iTunes to XHD. Have old version 10.6.3.  Have been afraid to update with 40GB of music. Been digitizing vinyl.  In this version, playlists export as m3u, which needs to be converted to MP3-Song by song???  Help?? What do I do first?  Coul

    About to back up iTunes to XHD. Have old version 10.6.3.  Have been afraid to update with 40GB of music. Been digitizing vinyl.  In this version, playlists export as m3u, which needs to be converted to MP3-Song by song??? Goal is to also be able to burn MP3 to flash drive and to XHD as usable data.
    Help?? What do I do first?  Could export as m3u-then figure it out later? Or will this data be unreadable junk in a new version of iTunes?
    Does new version 11.whatever., have a provision to make all into MP3? Obviously past applecare contract.
    Been looking at forums-not clear what to do.
    Is there a simple way to convert/export m3u as MP3 in the newest version of iTunes?  Am I asking the right questions???

    Hi printmistress888,
    Welcome to the Support Communities!
    The article below may be able to help you with this.  Click on the link to see more details and screenshots. 
    iTunes: Back up your iTunes library by copying to an external hard drive
    http://support.apple.com/kb/HT1751
    iTunes 10 for Mac: Save a copy of your playlists
    http://support.apple.com/kb/ph1744
    Cheers,
    - Judy

  • Problem in date converting into dbFormat()

    Respected Experts,
    I am get the current date into String vaiable and from this string variable i want to convert into dateformat.
    For converting to date format i write the .java file. It converts date correctly into format "dd/mm/yyyy" but i want date format into "dd/mm/yyyy HH:MM.pm/am", so what change should i do in my following progaram.
    import java.text.SimpleDateFormat;
    import java.text.DateFormat;
    import java.text.ParseException;
    import java.util.Date;
    public class UtilityFunction
         public static String toUserFormatDate(Date dt)throws ParseException
         SimpleDateFormat sdf=new SimpleDateFormat("dd/MM/yyyy");
         String str=sdf.format(dt);
         return str;
         public static java.sql.Date toDbFormatDate(String sdt)throws ParseException
         SimpleDateFormat sdf=new SimpleDateFormat("dd/MM/yyyy");
         Date d=sdf.parse(sdt);
         SimpleDateFormat nsdf=new SimpleDateFormat("dd-MM-yyyy");
         String str=nsdf.format(d);
         Date nd=nsdf.parse(str);
         java.sql.Date rdate= new java.sql.Date(nd.getTime());
         return rdate;
         public static void main(String args[])throws ParseException
              SimpleDateFormat df=new SimpleDateFormat("dd-MM-yyyy");
              Date d2 =df.parse("08-09-1984");
              System.out.println("Date converted to User interface form");
              System.out.println("Database Date"+"08-09-1984");
              String p=toUserFormatDate(d2);
              System.out.println("Converted date"+p);
              java.sql.Date r=toDbFormatDate("12/12/2009");
              System.out.println("Date converted to database form");
              System.out.println("User Interface Date"+"12/12/2009");
              System.out.println("Converted date"+r);
    }

    After 22 posts on the forums, I'd have expected you to have learnt how to use the code tags by now (click on 'CODE' when posting)
    And while you get points for posting an SSCCE, you've left too much fluff in there. I don't know what method you want to discuss.
    And if you've reached this far with the SimpleDateFormat, what kept you from reading the rest of patterns available? It's all the same thing, you just needed to make it dd/MM/yyyy hh:mm a
    Do note that with your code, you're creating a date from a string that's missing the time, so you'll only get 12:00 AM all the time, for the above pattern. And also, you'd be using hh and not HH since putting AM/PM with 24 hour clock time is plain dumb.

  • I recently switched from years of PC to iMac ( OSX 10.7.5) and need to batch convert thousands of old WordPerfect files (many without an apparent file extension) into my new Microsoft 2011 Word.  I am a computer nitwit and am hoping for some simple sol'n.

    I recently switched from years of PC to iMac ( OSX 10.7.5) and need to batch convert thousands of old WordPerfect files (many without an apparent file extension) into my new Microsoft 2011 Word.  I am a computer nitwit and am hoping for some simple solution.

    Try reindexing the mailbox. This can take awhile if you have a lot of mail.
    Reindex messages.
    If that doesn't work try deleting MessageUidsAlreadyDownloaded3.
    Quit the application.
    You need to look in your user Library. Either hold down the option key while using the Finder “Go To Folder” command and select your user Library in your home folder or use the Finder “Go To Folder” command and enter ~/Library/Mail/V2/Mail Data/MessageUidsAlreadyDownloaded3.  Move the file to your desktop.
    Open the application and test. If it works okay, delete the file from the desktop.
    If the application is the same, return thefile to where you got it from, overwriting the newer ones.
    If you prefer to make your User library permanently visible, use the Terminal command found below.
    Show User Library
    You might want to bookmark the command. I had to use it again after I installed 10.8.5. I have also been informed that if you drag the user library to Finder it will remain visible.

  • OK , I have my instructional coaches creating power point presentation add audio to each slide with the presenter 10 add ins. I need these presentation converted into MP4 like you can do with adobe presenter video creator.

    Love the Adobe products first. OK , I have my instructional coaches creating power point presentation add audio to each slide with the presenter 10 add ins. I need these presentation converted into MP4 like you can do with adobe presenter video creator.

    If you import the PPT deck into Captivate it will not bring the audio from Presenter. But you can import it into Captivate after the slide deck has been imported. The audio files aren't necessarily named in a logical fashion in the source files for the presentation, so I would recommend that you publish the presentation locally and then find the 'data' folder in the published output and the audio files will be named in a way that you can infer the slide they are associated with. Not the simplest proceedure but it should be pretty painless.

  • Taking white MacBook from US to UK. Do I need a power converter?

    I recently purchased a white 13" MacBook for college, which is in the UK.
    Am I going to need a power converter for my MacBook when I go to the UK? The voltage in the US is 110V, and the voltage in the UK is 220V.
    Thanks!

    Your power adapter will work with 110 or 220 V. However, the actual 220 V socket is different. You'll need a little adapter that just converts the standard US outlet into the standard 220 V UK outlet. Apple sells a whole kit, but that's sort of overkill:
    http://store.apple.com/us/product/MB974ZM/A?fnode=MTY1NDEwMQ&mco=NjcxMjczMg
    I'm not sure which specific plug you would need. I'm sure someone here can chime on on which one would be appropriate then you can pick up just the plug you need vs. an entire kit.

  • February  2012,I bought an AppleTV in the US, to bring it to where I live, CHILE, where voltage is 220V. Is the device multivoltage or do I need a voltage converter?

    February  2012,I bought an AppleTV in the US, to bring it to where I live, CHILE, where voltage is 220V. Is the device multivoltage or do I need a voltage converter?
    Thanks!

    only a cable that fit your wall socket is required

  • I have a macbook pro with a mini display port out and would like to know how to connect the video from my mac to a TV with old RCA input video, or a TV with S-video imput. How can I do this, and do I need a video converter?

    I have a MacBook Pro that I want to hook up the Mini Display Port video out to a TV with RCA video imput, or a TV with S-video iimput.
    How do I do this, and do I need a video converter?
    Dennis

    there's an adaptor for mini dvi to s-video
    a well known auction site would yield results if apple don't stock it

  • How to update need by date in Purchase order using an API?

    Hi All,
    Is there any API available in 11i which can be used to update the need by date in purchase order?
    There is a API PO_CHANGE_API1_S.UPDATE_PO, but it updates only the promise date and not the need by date.
    Please help !!
    Thanks & Regards
    Anuj

    Your error comes from Sybase, so I suggest you post your question to a Sybase forum.  And be aware that Sybase does not use the same tsql dialect as sql server, so you must use their dialect (if, indeed, there is any difference in this particular situation). 
    One note - there should be no space between "N" and the Unicode string literal to which it applies in tsql.  E.g.,
    = N'Executive Chair эюя'
    not
    = N 'Executive Chair эюя'

  • Is there any method to stop rescheduling of the PO Need By date from ATP if there is any holiday specified in shipping calender. The requirement is to update the schedule ship date on Sales Order but the lead time of  Purchase Order should not increase

    We are currently not able to manage schedule ship date proposed by ATP when our warehouse is closed. For example , we would like that ATP doesn't propose any schedule ship date for the first of May , which is a non working day in France. The constraint is that we don't want our purchase need by date to be impacted by the process.
    I tried to closed one day in FR1 calendar and, after testing with order management, it appears that ATP didn't propose the closed day, so that's fine, but, our purchase order lead time was increased of 1 day and this is not what we expected.
    Can you help us to find the right process.
    Thanks

    Hi Sandeep,
    when we try to Rescheduled out the PO and the request is errored out the with the error:-
    Start of log messages from FND_FILE
    reschedule fails
    old date in planner workbench: 19-MAY-11
    new date: 07-JUN-11
    header: 417474
    line: 605652
    po number: 2049031859
    shipment no: 1
    The need by date/promised date in the source instance is not the same as the need by date/promised date in the destination instance.
    In the source instance,
    The need by date is 19-MAY-11, and the promised date is 19-MAY-11
    End of log messages from FND_FILE
    ---------------------------------------------------------------------------

  • I need help in converting a pdf to a fillable form in my adobe

    I need help in converting a pdf to a fillable form in my adobe

    "Adobe" is a company. If you mean "Adobe Reader" then you can't (at least not easily). You need Adobe Acrobat for that.

  • Does my Macbook Air need a power converter in the UK?

    I am traveling to the UK soon - will I need a power converter for my MacBook Air, iPad and iPhone?
    thanks

    Input voltage for iPad and iPhone is same. 100 -240 Volts.
    You will need plug adapters for those power adapters.
    No converters are necessary.
    Certification Label:
    https://www.apple.com/power-adapters/

  • If I take my MacBook Air to Italy from the US will I need a voltage converter?

    If I take my MacBook Air to Italy from the US, will I need a voltage converter?

    No. All you will need is a Plug Adaptor for the mains power outlets...
    Line voltage: 100-240V AC
    Frequency: 50Hz to 60Hz

  • Do I need a wattage converter from US to AU for my Macbook Pro?

    I am traveling to Australia. Will I need a wattage converter for my MacBook pro?
    Going from USA to Australia.
    Please Help and Thanks!

    "although you may need a plug adapter....I do not know what plug type is used in OZ"
    They have them on Amazon.com, not expensive a few dollars

Maybe you are looking for

  • Firefox 3.6.8 is not remembering my user name and password

    This has been happening since I bought my new iMac with snow leopard and downloaded Firefox. This does not happen with Safari. I have checked the forums and mozzilazine and google to no avail.

  • Shipment cost in inbound delivery

    Dear Experts , I am facing a issue regarding shipment cost in inbound delivery processing . My process is as folows. 1. Create a purchase order 2. Create inbound delivery 3. Create Shipment document 4 Create Shipment cost document. My shipment cost i

  • Cannot export video from iPhoto

    cannot export a video taken from an iphone. from iphoto to anything, it saves it as a 0.00 second movie file. and yes before you ask i am changing it to original file :/

  • XMLP 5.6.2 - Parameters -  Both Multi-Select and All-Select  Do Not Work

    Both Multi-Select and All-Select Do Not Work. What's up with this behavior? And when might it be fixed? BG...

  • Copy Long raw from one table to another.

    Hi I am trying to copy data from one table to another. Source has one Long Raw column. There are about million rows in source table. And I am using Oracle 8.1.5. Whenever I execute the copy command, I get the following error message: Can someone help