Error with "SimpleDate Format"

import java.util.*;
import java.util.Date;
import java.text.SimpleDateFormat.*;
class CmdLineApp
public static void main(String args[]){
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");
^ ^
1 2
SimpleDateFormat timeFormat = new SimpleDateFormat("HH:mm:SS ");
^ ^
3 4
Date now = new Date();
String dateString = dateFormat.format(now);
String timeString = timeFormat.format(now);
System.out.println(dateString);
System.out.println(timeString);
error 1-4>cannot recolve symbol.
can any one help mi explain.

If you change import java.text.SimpleDateFormat.*; to import java.text.SimpleDateFormat;it should work.

Similar Messages

  • Error with ACH Format

    Hi Friends,
    I am trying to get a printout through FBZ5 for an ACH format (Payment method - T) for a new company code.
    Facing the following error,
    Select either a payment transfer medium or a DME
    Message no. F0067
    Diagnosis
    Payment transfer media can be either printed on paper or output via data medium exchange. If you select both options, the system asks you to decide on just one.
    Where can i select Payment transfer medium or DME?
    for your information:
    1.The payment method already defined in the Vendor master
    2.The payment method not in the document line item
    3. ACH Format is working fine with other co.code through Auto Payment run - F110
    Please help me to figureout this issue.
    Thanking you
    Kanna

    SAP has provided some of the DME structures for different countries. like GB_BACS for GB etc.
    If your client is not part of those structure, probably you are required to create your own structure. It also depends on the bank of your client. They may want the file in a different format. Therefore, you need to first talk to the bank and get a sample file in which they need the format.
    You can create the DME structure by using transaction code DMEE - Tree Type is PAYM.
    You can create the DME structure as a flat file or XML file based on the requirement of your client (bank).
    You can also copy the standard structure to Z structure and modify it according to your requirements.
    Please also make sure that you have made settings in OBPM1, OBPM2, OBPM3 and OBPM4 (More importantly you should maintain the path where it needs to be downloaded)
    Complete your FBZP settings - Importantly payment methods in country, select your DME structure.
    Take help of basis consultant in order to create the directories. You can see the directories in AL11.
    If there are no directory path maintained in OBPM4, then the file gets saved to temporary directory in AL11.
    If you are using DME structure, then forget the classic payment medium.
    1. First ask the bank for the format, file type etc. Ask bank for any document available.
    2. The see for that country if SAP has provided any standard DME structure (Transaction Code DMEE - Tree Type PAYM)
    3. If this is not sufficient, then copy the standard DME strcutre and modify it accordingly to your requirement.
    4. Assign this DME structure in FBZP - Payment Methods in country. * Use payment medium workbench
    5. Check with your basis whether any secured folders are created in AL11 (where the output file needs to get generated) - If not ask them to create.
    6.Check your settings in OBPM1 / OBPM2 / OBPM3 / OBPM4 - (In OBPM4 make sure you have given the secured folder path and file name for your variant)
    7. Run F110 - Check you have maintained your variant details properly for program RFFOAVIS_FPAYM
    If you maintain all these steps correct, hope your DME file should get generated.
    Regards,
    Ravi

  • Sql loader error with date format

    Hi everyone,
    I have table and have a data in one coulmn RECORDED_DATE like '20090224' and my client is asking me to load this coulmn data in 'yyyymmdd' format.I am strucked up with my ideas.I used to_date('20090124','yyyymmdd') in control file.but it is also not working Here it is my control file
    LOAD DATA
    INFILE 'C:\xxxx\SQLLDR\HE data\HE_data_Feb.txt'
    BADFILE 'C:\xxxx\SQLLDR\HE data.bad'
    DISCARDFILE 'C:\xxxx\SQLLDR\HE data.dsc'
    INTO TABLE LSCCMGR.FASTPAY_HE_DATA
    REPLACE
    fields terminated by X'09'
    TRAILING NULLCOLS
    (RECORDED_DATE "TO_DATE(:RECORDED_DATE,'mm/dd/yyyy')"
    AGENT_ID
    MEASURE
    TRANSACTIONS
    FEES
    If i excute like this i am getting the error like
    Record 1: Rejected - Error on table LSCCMGR.FASTPAY_HE_DATA, column RECORDED_DATE.
    ORA-01843: not a valid month
    Getting for all records,what i need o change to get the RECORDED_DATE as dateformat.Ple any one help me in this issue to resolve
    How can we perform this using sql loader pls let me know,Thanks in advance.
    Sravan

    Hi,
    >>(RECORDED_DATE "TO_DATE(:RECORDED_DATE,'mm/dd/yyyy')"
    *Change this line to*
    (RECORDED_DATE "TO_DATE(:RECORDED_DATE,'yyyymmdd')"Regards,

  • JDBC Error with DATE format

    Hello,
    we had created a scenario file to jdbc. while sending file to Oracle DB, it shows error as "ORA-01861: literal does not match format string". we checked the literals and white spaces. still we have same problem. so i have doubt on DATE format. we are sending date from PI system as yyyyMMdd which is not supported by Oracle i think. So please provide the DATE format accepted by Oracle and how to pass from SAP PI mapping. it will be appreciable if provide Steps to do in mapping or UDF code sample.
    Also in response status we get the error "ORA-00917: missing comma ".  So plz let me know how to solve this issue.
    Thanks in Advance.

    Hi
    The date format for oracle is dd-MON-yyyy.
    Please refer to blog below
    /people/santhosh.kumarv/blog/2008/10/10/life-is-all-about-days-date-in-xi
    /people/sarvesh.singh3/blog/2009/02/13/yes-it-is-possible-with-datetrans-function
    Regards,
    Deepak.
    Edited by: Deepak  Shah on May 21, 2010 3:35 PM

  • Adobe Media Encoder Error with MPEG2 Formats [../../src/Command.cpp-2519]

    I am trying to use some of my presets using MPEG2 format and it is giving me this error: [/Volumes/BuildDisk/builds/ame602_mac/main/app/frontend/prj/mac/../../src/Command.cpp-251 9]. I try the system presets that use MPEG2 and I get the same error. I notice if I try to make a new preset, I do not even have the option to choose MPEG2. I only get MPEG4 or MPEG4 (Legacy). I am using AME 7.0.2; if anyone has an idea on why I can't use MPEG2 please let me know.
    Thanks,
    Mike

    Hi mboory,
    Please mention the exact version of Media Encoder CS6 that you are using and also the version of operating system. Please check the below link as well.
    http://forums.adobe.com/message/4402558
    Regards,
    Vinay

  • Question with SIMPLEDATE FORMAT in Java

    How can I convert my Date field in the the format I want with Simple Date format.
    Calendar cal1 = Calendar.getInstance(TimeZone.getDefault());
                   String DATE_FORMAT = "yyyy-MM-dd"; //
                   java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat(DATE_FORMAT);
                   sdf.setTimeZone(TimeZone.getDefault());
                   String now = sdf.format(cal1.getTime());This code gives me the format I want, if I use a String , but I want to have this format in my DATE filed called START_DATE.
    How can I do that?I am sorry, I am learning Java, so this might be very idiotic questions to ask..but if anybody can help me??
    Thanks,
    Edited by: ASH_2007 on Mar 18, 2008 10:30 AM

    Yes, I know how to do that for a String.
    But how do I do the same thing for Date fields?I believe I already mentioned that is non-sensical in java. There is no such thing as a "date field".
    There is a Date object. And you use SimpleDateFormat to display it.
    There are datatypes in a database that are associated with timestamp values. And I already explained to you that, as you have already found out, that datatype holds a timestamp. It does not hold a date (just a date) and it never will. It is not possible.
    In terms of displaying (not storing) something in the database itself, not java, the way that you do that depends on the database.
    But regardless of the database you MUST still do something in terms of DISPLAYING it to make a timestamp appear as display value that looks like a date.
    Now exactly which parts of the above do you not understand????
    Stop telling us what you want to do and start asking questions about what we said - because it is obvious that you are having problems with concepts, not code. And until you understand the comments you can't phrase a question correctly so that one can answer it with code.

  • Need Old Version of Firmware - Suspected Errors with 1.11

    Zen V Plus reporting "Audio format is not supported" after upgrade to firmware ..0. I am interested in reverting to .0.xx to see if problem is resolved, but I cannot find it anywhere. Regards,?John

    Problem solved for me. Found .0.03 firmware available from link at nomadness.net (http://www.nomadness.net/modules.php...rticle&sid=980). No longer experiencing errors with audio format not supported.

  • Error while opening pdf in reader in windows 8:Can't open this file. There's a problem with file format

    I have a problem with a pdf file which does not open with reader in windows 8 but it opens properly with adobe pdf reader. All other pdf can be opened in reader.But when i open a pdf(see this link for pdf for which i got error http://incometaxsoft.com/temp/Form.pdf)
    it gives error as "Can't open this file. There's a problem with file format".
    The same file opens properly in adobe pdf reader.You can check the pdf file which i have mentioned in the link above.But the reader which comes with windows 8 can open some other pdf in the same PC.What may be the error causing this??

    This has turned out to be an enormous issue for me as I sell PDF files as ebooks. I have done a fair amount of investigating this for my system.
    My files have to be compatible not just across readers but across operating systems.
    To date, I have over 200 PDFs that have functioned flawlessly across Mac, PC (Windows 7 and below), Android, iPhone/iPad, Linux.
    I personally test my PDFs using a variety of readers and PDF editors including
    PDF XChange (my favorite)
    Foxit (runner up for me and I recommend for most people)
    Adobe (the bloated monster)
    Nitro 9 (great for moving graphical elements around)
    ABBYY
    And the Nuance PDF Create toolsets
    Those are off the top of my head. There are a bunch on Android that I test with too.
    I am running the Windows 10 Pro Tech Preview and I have this same problem so I know it isn't fixed yet in any kind of pre-release way (-sigh-)
    Here is what I've learned for my situation
    The PDFs I created using NUANCE'S PDF CREATE PROFESSIONAL VERSION 8
    all fail using the built-in Windows 8/10 PDF reader.
    When I look at the PDF properties for these Nuance created files, the underlying engine used to write them is called "ImageToPDF". Using ABBYY it indicates their own engine as does everyone else that I've tried. It is easy for you to check to see
    what created your PDF by doing a "Control D" (look at the document properties). Perhaps there's a common engine causing issues.
    If I use the exact same source files to create a PDF using any of my other tools I have no issues. I checked the PDF versions made by the tools and they are all set to 1.5.
    A customer mentioned being able to convert them in a way they worked by saving them without having to do any kind of extraction, but I have not been able to duplicate that. Perhaps he did a "print" which seems like it could work.
    In summary, the workaround everyone is talking about, using an alternate reader, of course works. But not everyone wants to change.
     The culprit I have found is my Nuance PDF Creation tools that are using the ImageToPDF engine.
    I hope it gets FIXED as I really don't want to have to regenerate all of my PDF files.

  • Error in REST Web Service with Output Format as Text

    Hi All,
    I am referencing a REST web service, and can successfully connect to it and retrieve results with the Output Format set to XML.
    I don't need the individual node values, I just want to capture the entire XML as a string, and populate a table column with it.
    When I create a new Rest web service reference, with Output Format set to Text, and then create a form/report to run it, I get the following error when I click 'Submit':
    ORA-06550: line 1, column 63: PLS-00103: Encountered the symbol "end-of-file" when expecting one of the following: ( - + case mod new not null others avg count current exists max min prior sql stddev sum variance execute forall merge time timestamp interval date pipe
         Error      Error sending request.
    There are control characters in the XML, but surely this is handled by Apex, so I'm not sure what the problem is here.
    Any ideas most welcome.
    Thanks,
    Rhodri

    Rhodri:
    Application Express expects text response to actually be text response, delimited by other characters denoting a new value, and a new record set. You should leave the response as XML. The XML document will be stored in the xmltype01 column of the collection you specify. You can then convert that xmltype01 column to a clob if you like using .toClobVal().
    Regards,
    Jason

  • Apex mobile Date-Picker (date with time) format mask error

    Hi together.
    I'm playing  a little bit with Apex mobile.
    I want to save a date with hours and minutes in the database. So i have an date field (type: date with time).
    On my phone i can select an date value with time, but when i want to save the value, i get an format error, that the format 'YYYY-MM-DD"T"HH24:MI:SS' is wrong.
    I can't change the format mask in the element properties, because it is everytime going back to the old value "YYYY-MM-DD"T"HH24:MI:SS", when i save it.

    Not a 100% related, but personally and from a usability point-of-view I really dislike the built-in datetimepicker and so far every client who has seen it has agreed with it. It pops the date and time down to the bottom, it only selects when you hit close, it just doesn't look appealing as the normal datepicker does and you expect more. Personally I've also gone the route Jari described several times, and it's probably still the cleanest and least error-prone option. Validating dates can be quite a pain, but the datepicker built-in validation does that fine, so if you can circumvent validating a free-text time field that helps). I've used some jQuery timepicker plugins aswell, and they're ok, but still don't solve the validation (even though there is some javascript validation you still need serverside validation). All I'm trying to say is that using select lists for hour-minutes is not such a bad idea in my opinion.

  • Creative Zen V Plus - Seeking your help with "Audio format is not supported" error

    Hi,
    I have a problem with my Creative Zen V Plus and am looking for someone to do a quick test to help me. I listen to a lot of MP3 podcasts, so I often rewind, fast forward or set bookmarks inside tracks. When I do those operations in some tracks, I get the error ?Audio format is not supported? when I ?land on certain places in a track (and I am able to reproduce the problem, which happens always at the same place in a particular track).
    Here is what I mean by ?land?. For instance, there is a particular track (see the mp3 link below) that whenever I rewind to exactly 35 min 37 seconds, I get the error ?Audio format is not supported? and playback is stopped. If I fast forward to exactly 35 min 37 seconds, I also get the error. If I set a bookmark to exactly 35 min 37 seconds and I then go to that bookmark, I also get the error. But I don?t get the error if I play the track normally without any rewinding or fast forwarding: the track is played and passes the 35 min 37 seconds mark without any error.
    Creative Labs customer support wants me to return my player for repair, but I am not sure if the problem is with my player or if the problem would also be present on other Zen V Plus, thus my asking for your help.
    I would appreciate if someone of you could try one of my problematic tracks on their player. Here is what you could do to help me:
    1- Download and transfer to your Zen V Plus player the following audio file (it'ss a technology podcast and don?t worry, it'ss virus-free, it comes from CNET):
    http://podcast-files.cnet.com/podcas...oud_090808.mp3
    2- Go to the 35 min and 37 seconds mark, press PAUSE and set a bookmark there.
    3- Go into the Bookmarks menu and go to the bookmark you just set.
    4- Do you see the error ?Audio format is not supported?, or the audio plays just fine? If the audio plays just fine, could you tell me what are the first words you hear
    when going to that bookmark, just so that I am sure we are indeed doing the same test on each of our side?
    5- What firmware version is your player at ?
    Thank you very much for any help you could bring me.
    Patrick

    never mind. figured it out!

  • Trying to embed a video file in HTML5: ERROR=No video with supported format and MIME type found?

    Hello all!
    I am desparate for a solution. I am testing my site on Firefox and Explorer and still no sign of a functional video yet.
    Firefox: I get the error: No video with supported format and MIME type found.
    Explorer: I just get a distorted layout.
    Here is the code I am working on:
    <table id="Table_01" width="480" height="801" border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td colspan="6">
                <img src="images/Video_01.jpg" width="480" height="114" alt=""></td>
        </tr>
        <tr>
            <td rowspan="3">
                <img src="images/Video_02.jpg" width="52" height="486" alt=""></td>
            <td colspan="4">
               <video controls width="376" height="221">
                 <source src="C:\Users\aalmeida\Videos\AEMC PEL 103 6 Channel, Power & Energy Logger - with Display (Part 1).mp4" type="Video/Mp4"/>
                 <source src="C:\Users\aalmeida\Videos\AEMC PEL 103 6 Channel, Power & Energy Logger - with Display (Part 1).webm" type="Video/WebM"/>
                 <source src="C:\Users\aalmeida\Videos\AEMC PEL 103 6 Channel, Power & Energy Logger - with Display (Part 1).oggtheora.ogv" type="Video/Ogg"/>
                 </video>
    Please tell me that there is something missing in the code. I have spent a lot of time uninstalling-updating Firefox plugins, added MIME types in the Internet Information Manager (I'm on Windows 7)
    and  seriuously hit a dead end with this!
    Any advice would be muchly appreciated!!!
    Thanks
    ~LA

    As Jon said, you must declare the page as HTML5.
    And your server may not be set up to deliver video as a binary file if it is an .OGG file. I have not seen this problem with .MP4 or .M4V in the past, but every server is a little different.
    To add a MIME type, you need to change your .htaccess file on an Apache server thusly:
    AddType audio/ogg .oga
    AddType video/ogg .ogv
    AddType application/ogg .ogg
    AddHandler application-ogg .ogg .ogv .oga
    Additionally, MIME types can usually be changed on a server's Control Panel. One can also ask one's hosting provider to do this as well.
    Firefox makes it necessary to use OGG files. Webkit-based browsers will deal with .M4V or .MP4 and I understand Internet Exploder will work with the latter two as well.

  • Choosing 'Export', I confront 'Error 108' message. Exporting  with file format mp4, etc doesnot work.

    Choosing 'Export'  in file menu, QuickTIme pro (v.7.7.4) ,   I confront 'Error 108' message   with WIndows 7.
    Namely
    Error-108 : an unknown error occurred.
    As a results  Exporting  with file format mp4, etc doesnot work. (windows 7. Quick time player v.7.7.4)
    What are the reason? How do I operate this ?
    Thank you.

    boom! that advice was correct and worked. i was able to export the full project as a quicktime movie and it can be uploaded to youtube.
    NOTE, theres is definately quite a few noticeable audio glitches/lags/pops that werent there before doing this. I believe, and will test to make sure, that having a project such as this one needs to render before exporting. I'm not sure if the advice requires the project to be unrendered before exporting for a specific reason, because if it will export fine after rendering the project that's the way to go. like i said the edited version i have in my timeline plays back perfectly but this exported version has quite a few noticeable audio glitches (a few video glitches too). I'm going to retry doing the first few steps of your advice, but then at the end render, then export and compare the results...
    OK, so this leads to a big question, Is this something that is standard for everyone when trying to export? If its not, what causes this error?
    is there any way of preemptively avoiding it in future projects?
    thanks again, and hopefully this information will help others as exporting seem to be one of the biggest problems in fcpx. any word on a new patch or firmware update?

  • Error in back up with xml format

    Hi
     when i was  getting to  backup the database  with xml  format . iam getting this type of errors..
    The 'DimensionID' required element is missing under Envelope/Body/Execute/Command/Alter/ObjectDefinition/Cube/Dimensions/Dimension
    at line 21, column 28 (namespace 'http://schemas.microsoft.com/analysisservices/2003/engine.
    how to solve the issues ..
      please help me..
     thanks

    Hi Sheshu,
    According to your description, you are experiencing the issue "The 'DimensionID' required element is missing under....." when back up you databased using XML format, right?
    After investigate this issue, the underlying cause is not fully known. You can process the database and then backup it again. Here are blogs that describe how to backup SQL Server Analysis Services using XMLA, please see:
    http://www.sqlservergeeks.com/sql-server-backing-up-analysis-services-database-automatically-part-1/
    http://www.ssas-info.com/analysis-services-scripts/2679-script-to-backup-ssas-database-and-delete-old-backup-files
    If the issue persists, please provide us more information about it, so that we can make further analysis.
    Regards,
    Charlie Liao
    TechNet Community Support

  • InDesign CC | Error with indd file - "Cannot open the file...Adobe InDesign may not support file format"

    I encountered a very strange error with InDesign CC after saving a file created in CS4. I'd attach the file but I'm not sure how to do this, if I'm able to. The file is 44kb and doesn't seem like it should be (file I saved had a large book cover). Now since the original CS4 file was overwritten using InDesign CC, the file is corrupt and I'm getting the error message displayed below. The file is not open within another application. Has anyone gotten this before?

    Thanks for your response Peter. Below is the gibber contained in the first four lines. In the first line, where it reads "mimetypeapplication" and then "indesign-idml-package", I would assume that this should've been a valid idml file.
    PK        *meEËv‰+   +       mimetypeapplication/vnd.adobe.indesign-idml-packagePK        *meE!t/k   {<     designmap.xmlÝ[ýrÚH ÿ;y •ê.µ[uk 6¶IÀ)À áb  þÈÞÖÖÖ 0e1£ IŽÙ¿ò wUw/—'¹îÑ× cc;gv«²FÝ==¿îéîé CýýíÌ5n¨ô™à ³¼U2 Êmá0>i˜ çÇ?훆  î WpÚ0çÔ7ß ¼®¿'Ì ÆÜ Z   s >9 g” ¦!)q¨¼L ï¢â1%A(é ³RÝ3 O '´á©\Ú*ý°WúÑ4P÷a¬Å lÜËœþ5€™ ÷Ö²¸¿E 1¢[¶˜YMüÔá‡Ôg n1gæZ`‚å ûšLÀ Ó8ìuS 8‹i ©; ¤ð! r~Ê|˜?¤ # ׌°\ÂÿöwŒ°62R)ú‚q( 0´i 솞’9•0f´k íîÏ ûRŒ úábk¸e\Ñ‘Ñ $ ŽñÃðª×ÿѸ©˜ÆकŠùð`tŽÚ»åÚîîO•2@ .sÚ ²Ã Šó]øT=ƒ³ 0ćÉÇ •-—r\›b±C:&¡ tfdB‹¥  ÌiÏ f_RŸÊ z4 QÇ¡NŒÓ‹¥Úb6bœ àÈÞ8 ÒäΐŒi{6¿FçØ¡ »O›¡' ¿aŽ‰ëSóàõ«ú)á“  ÅÎO ¿t #>q™?

Maybe you are looking for

  • 2011 Macbook pro continues to have issues what should I do?

    In 2011 I purchased an early 2011 2.2 i7 Macbook Pro new. Not long after I bought it I began to have graphics issues with the computer. The computer was sent into Apple and a logicboard replacement was done. I continued to have intermediate issues wi

  • Copying the VPRS from PGI material document to Billing

    Hi , We have a requirement to copy the cost price VPRS from PGI - Accounting document to the Billing I explored some configuration in copy controls by putting the Price source as E which will copy the cost price from the PGI to the Billing But i foun

  • Error occured while running .java package in BPEL

    Hi All, I'm trying to run .java package which is using RIDC components (GET_FILE) option. I have set my local IP address in the config.cfg file also and restarted. Still i'm getting below error in Jdeveloper when I run the package..... oracle.stellen

  • Where is the iPhoto folder?

    I am using iPhoto 9.2.1 (OSX 10.6.8) after a recent upgrade. I was accustomed to searching for my photo files within the pictures folder> iphoto > where in addition to the iPhoto library there would be a folder containing all my files organized chron

  • Sent Emails are Disappearing

    It started off intermittently, and is now constant. When I send an email from mail.app, I can find no trace of that email on my computer. I've tried rebuilding mailboxes, envelope list resetting, restarting, cron files...this is unacceptable! I've se