How can I convert date infomation to a string just includes the date not th

I just want the date like Thu 08, july 2004 but not the exact time.
how can I do that.

The prior code produces a date formatted as Jul 7, 2004
To get Wed 07, July 2004, try this minor modification:
import java.text.DateFormat;
import java.util.Date;
import java.text.SimpleDateFormat;
DateFormat format = new SimpleDateFormat("EEE dd, MMMM yyyy");
Date mydate = new Date();
String str = format.format(mydate);
System.out.println(str);

Similar Messages

  • How can i convert data from DBF to oracle database 10g?

    Sir,
    How can i convert data from DBF to oracle database 10g?

    I assume you at least know how to dump the contents of foxpro dbf file into CSV format.
    Regarding SQL*Loader, hope this demo makes it a bit clear to you...
    http://www.princeton.edu/~storacle/sqlloader_demo.shtml
    I agree that it is an old web page (references Oracle 8.0.5) but basics remain the same.
    If it is still unclear to you after referring above link, then get an Oracle consultant.

  • How can I convert an int to a string?

    Hi
    How can I convert an int to a string?
    /ad87geao

    Here is some the code:
    public class GUI
        extends Applet {
      public GUI() { 
        lastValue = 5;
        String temp = Integer.toString(lastValue);
        System.out.println(temp);
        showText(temp);
      private void showText(final String text) {
        SwingUtilities.invokeLater(new Runnable() {
          public void run() {
            tArea2.setText(text + "\n");
    }

  • How can I convert  an ArrayList to a String[]

    Hi,
    How can I convert an ArrayList (only with strings) to a String[] ?
    I've tried this :
         public static String listToString(List l) {
              StringBuffer sb = new StringBuffer();
              Iterator iter = l.iterator();
              while (iter.hasNext()) {
                   sb.append(iter.next().toString());
                   if (iter.hasNext()) {
                        sb.append(',');
              return sb.toString();
    But what I get is an array of xxxxx@435634 (for example).
    Thanks a lot !

    Strings are Objects but not all Objects are Strings and at least one of the elements in your List is not a String.

  • How can i convert some caracteres of a String in bold characteres?? hELPME

    How can i convert some caracteres of a String in bold caracteres?? hELPME
    I have a JList and a DefaultListModel of Strings. So, i have many key words like "proccess", "if", "fi" that i want these characteres in bold.

    How i can use HTML in java to change a String to bold?
    example
    String str = "channel ";
    str = <b>str</b>;
    like this? syntax error =/

  • How can I get rid of those infuriating banners just beneath the Search window?

    How can i get rid of those infuriating banners just beneath the Search window?

    Change your home page to a non-firefox one. If you want google as your home page, do the following:<br><br>
    #Go to google.com<br><br>
    #Click the Firefox button, go to Options | Options | General.<br><br>
    #Make sure it says "Show My Home Page" in the dropdown menu at the top and then click the button called "Use Current Pages".<br><br>
    I can't think what Mozilla is trying to achieve by displaying that childish junk.

  • How can I convert a Waveform to a String-For​mat?

    Hello,
    I write with "SQL-Execute.vi" datas to an Access-file. The "SQL-Execute.vi" needs a statement in String Format. And that is my problem. My source-datas (that I want to save to Access) are Waveforms. How can I convert the Waveform datas to a String Format?
    Thanks for help!

    Wire the waveform to the Get waveform componants function...from that you get t0, delta t and the sample values. Now you can generate whatever string you want based on that information...
    You could e.g. wire the Y array to a for-loop in which you calculate the time of each sample by taking t0 and adding delta t multiplied with the array index, then you could convert the Y value and the time to strings using the seconds to time string and number to fractional string functions...etc etc...
    MTO

  • How can i convert JMS TextMessage into a String

    Please tell me,How can i convert A JMS TextMessage into a String

    http://java.sun.com/javaee/5/docs/api/javax/jms/TextMessage.html#getText()

  • How can I convert/read out from a string Hex (8-bit), the bit 0 length 1

    How can I convert/read out from Hex (8-bit), the bit 0 length 1 (string subset!!??) and convert it to decimal.
    With respect to one complement and two complement ?

    Just like Jeff, purely guessing here.
    It almost sounds like you just need to Read from Binary File?
    AND the 8-bit number with 1?
    Need more details.  What exactly do you have to start with?  What exactly are you trying to get out of it?  Examples help.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • How can I convert date in FOX (from DEC to date[DEC])

    Hi everyone!
    In my planning layout I have a field called "MYDATE" of the date-type "DEC: Calculation or amount field with comma and +/- sign" (-> BPS does not allow using DATS as date-type).
    Since I import that date from a different system, I have to use a temporary workaround field "WADATE" (WorkaroundDate) of type DEC (alternatively integer or float) which contains the date in a format YYYYMMDD (e.g. 20070604).
    How can I transfer the date from WADATE to MYDATE? I tried using FOX, but for some reason it does not work. When I use the following function, MYDATE remains empty:
    DATA TMPDATE TYPE F.
    DATA MYPROJECTS TYPE B906_PROJ.
    FOREACH MYPROJECTS.
    "MYDATE" is the field I want my date in
    "WADATE" is my workaround field that contains the date
    TMPDATE = {WADATE,000,0000000001,0000000001,001}.
    BREAK-POINT.
    {MYDATE,000,0000000001,0000000001,001} = TMPDATE.
    ENDFOR.
    Is it possible to solve my problem with FOX? Or do I have to work with an EXIT function?
    Best regards, Daniel

    Daniel,
    The better approach is the one Marc said but if you have tomake a work around work, I think you might need to try and define your temporary date variable as String and another for the converted date as of type of the final date.  I would not define any date type as float unless you can have part days and it is very important to have part days, integer might work by I would try String first myself.
    It has been a while but on a BW 3.5 project I had to do some manipulation to read the attribute value of material master data to get the launch date and use it to derive the start period (definited as type 0FISCPER) and proportion of month based on number of days remaining after launch date vs the # of days for the month.  I think I used string type function in FOX to derive some of the component...
    Hope this helps,
    mary

  • How can I convert files in Aperture to jpegs and keep the file large

    I want to upload files into istock photo and they must be as big as possible but in jpg format. I end up exporting tiny little things going from 8mb to 300kb. How can I do it? I even tried going into CS3 but that only allowed me to convert to tif. I would appreciate any help - especially if it is simple!

    Go to File >> Export >> Export Version(s)
    In the resulting dialog box you'll find a drop down called Export Preset with a list of presets. One of them is JPEG Original Size. That should do it for you.
    Also you can choose Edit at the bottom of the preset list and modify an existing preset or create a new custom preset.
    BTW: the reason you couldn't do it in Photoshop is that you need to convert it from 16bit to 8bit before you can save a JPEG. That command in Photoshop is under Image>>Mode.
    DLS

  • How can I convert a Microsoft Publisher doc to PDF when the file size is LARGE?

    I have a Microsoft Publisher document that I need converted to PDF. Typically I have no issues converting from Publisher to PDF (and usually can just do it through the "save as" feature in Publisher.) However, this particular file is laden with graphics and therefore very large. I was able to convert it once, but it made some of the graphics as blank boxes. When I try again to convert, it gives me an error message.
    Is there a way to conver a LARGE Publisher file to PDF without losing any of the images contained within the document? Please help!

    Try emptying the Temp folder. Are you using PDF Maker (not sure that is available for Publisher) or the MS plugin? If PDF Maker, try turning off the tags and reducing the amount of bookmarks needed to a minimum. As an alternative, simply print to the Adobe PDF printer -- will typically give a smaller file and not run into these creation problems for large document, but you will not get bookmarks or such in the conversion process.

  • How can i remove an app from all my devices including the cloud?

    There are some apps that we have on my family's devices and in the cloud that I'm no longer comfortable with my kids using.  We share one account.  How can I delete them from the devices and the cloud so they can't just reinstall them?

    It will prevent them from installing any apps. Only someone with the Restriction passcode will be able to turn app downloads back on and download. You do have the option of setting app downloads based on content ratings, but I can't say how effective that is or if it would resolve your issue.

  • HOW can I convert int value char TO String

    I am trying to study Java by books, but sometimes it is quite difficult to find answers even to simple questions...
    I am writing a program that analyzes a Chinese text in Unicode. What I get from the text is CHAR int value (in decimals), and now I need to find them in another text file (with RegEx). But I can't find a way how to convert an INT value of a char into a String.
    Could you help me?
    Thank you in advance.

    You are confusing matters a bit. A char is a char is a char, no matter
    how you represent it. Have a look at this:char a= 'A';
    char b= 65;Both a and b have the same value. The representation of that value
    can be 'A' or 65 or even (char)('B'-1), because the decimal representation
    of 'B' is 66. Note the funny construct (char)(...). This construct casts
    the value ... back to the char type. Java performs all non-fraction
    arithmetic using four byte integers. The cast transforms it back to
    a two byte char type.
    Strings are just concatenations of zero or more chars. the charAt(i)
    method returns you the i-th char in a string. Have a look:String s= "AB";
    char a= 'A';
    char b= (char)(a+1);
    if (a == s.charAt(0)) System.out.println("yep");
    if (b == s.charAt(1)) System.out.println("yep");This piece of code prints "yep" two times. If you want to compare two
    Strings instead, you have to do this:String s= "AB";
    char a= 'A';
    char b= 'B';
    String t= ""+a+b;
    if (s.equals(t)) System.out.println("yep");Note the 'equals' method instead of the '==' operator. Also note that
    string t was constructed using those two chars. The above was a
    shorthand of something like this:StringBuffer sb= new StringBuffer("");
    sb.append(a);
    sb.append(b);
    String t= sb.toString();This is all handled by the compiler, for now, you can simply use the '+'
    operator if you want to append a char to a string. Note that it is not
    very efficient, but it'll do for now.
    Does this get your started?
    kind regards,
    Jos

  • How can I get data (not wifi) with my new iPad in Iceland. Thanks

    How? If I can can't find a wifi spot?

    I assume that you need to find a cellular provider for your iPad. See if this is what you need.
    http://www.icenews.is/index.php/2012/07/16/vodafone-offers-prepaid-sim-cards-and -prepaid-3g-for-visitors-in-iceland/

Maybe you are looking for

  • KM Task Scheduler

    dear all, 2 questions: Q1 I created a scheduled task in the NWDS and deployed the par and configured the time table for it. The task is running every minute, so it's all working. Now i'm wondering, is it possible to set the user that executes the tas

  • Error logging using DBMS_ERRLOG package

    Hi All, We have following tables, which are growing day-by-day and giving performance problems. There are total 25 tables (1 parent and 24 child tables, with different structures). Here i gave some Samples, NOT actual table structures. Actually we do

  • New iOS 8.0.2 and internet

    After installing iOS 8.0.2. my iPad jumps off the internet connection - wi-fi - at least once a day, so I have to reset it to get it working again. I've never had that problem and the other devices I have run fine. Have any of you had the same proble

  • Could not run the web browser

    I've installed Reader 7.0.9 in order to read ebooks. When I try to activate the mobile device, reader responds with "Acrobat could not run the web browser. Unknown error. (0)". Is there a plug-in missing or corrupted control somewhere. Any suggestion

  • Youtube: security sandbox violation

    Does anybody have a recipe for loading the AS3 chromeless player into a Flex application such that you don't get the 'incompatible context' errors constantly? *** Security Sandbox Violation *** SecurityDomain 'http://core-dev.thismoment.com/client/De