Defining a DateField to only show the date, not the time.

I read the API documents and it should work according to the documents, and the intellisense on my IDE, but it's not.

Any suggestions on what could go wrong?

/*TESTING DATES*/
Date dEnd = new Date(System.currentTimeMillis());
dfEnd = new DateField();
dfEnd.setDate(dEnd);
dfEnd.setFormat(DateFormat.DATE_MEDIUM);

The error that I get in the .setFormat method and it is:

The setFormat (DateFormat) in the DateField type method is not applicable for the arguments (int)

Thank you very much for your help guys, I am really learn here!

I create a SimpleDateFormat and use it in your format method.

SimpleDateFormat sdf = new SimpleDateFormat("MM/dd/yy");
dfEnd.setFormat(sdf);

Tags: BlackBerry Developers

Similar Questions

  • LifeLog only show the past 3 months of data.

    My Lifelog is only show my data in the last three months. Can someone please?

    Thank you very much.

  • iPhone5 only showing the first 8 digits of the wi - fi address

    Address wi - fi is only showing the first 8 digits, then... How do I access the other 4?  Even when I turn the phone on its side for more space it does not when you view the settings screen.  I try to connect to a secure wireless network and may not without the entire address.  Any help appreciated.

    I go in settings/general/to say and it displays all my WiFi address. Yours does not work?

  • update date and time for 3.6 numbers does not show the time and does not automatically update the date

    The 'update date and time"for numbers of 3.6 does not show the time and does not automatically update the date.  What should I do?  Thank you.

    Hi david,

    where do you find ' update of the date and time.

    Quinn

  • my windows xp does not start and it only shows the arrow and a black screen in the Middle, what can I do to solve this problem. __

    my windows xp does not start and it only shows the arrow and a black screen in the Middle, what can I do to solve this problem.

    Try to restart your machine and pressing F8 before the spash screen Windows appears.  Choose the option "last last known good configuration".

    If this fails, you can try to repair your installation of starting for the original CD-ROM for Windows XP installation and choosing the option 'Fix' when prompted.

  • I try to install hearing CC 2015 but it not only shows the installation.  It says 0% and its been 2 hours already.  How can I solve this?

    I try to install hearing CC 2015 but it not only shows the installation.  It says 0% and its been 2 hours already.  How can I solve this?

    Please read https://forums.adobe.com/thread/1499014

    -try some steps such as changing browsers and disable your firewall

    -also clear the cache of your browser if you start with a fresh browser

    -check the file hosts for blocked entries https://forums.adobe.com/thread/1912777

    http://myleniumerrors.com/installation-and-licensing-problems/creative-cloud-error-codes-w ip.

    https://helpx.Adobe.com/creative-cloud/KB/creative-cloud-desktop-application-failed.html

    http://helpx.Adobe.com/creative-cloud/KB/failed-install-creative-cloud-desktop.html

  • Hello, I do subpages in Muse with a vertical menu by hand, now my problem is that when I saw the site and I'm on the subpage, the menu of head only shows the active state. How can I solve this problem?

    Hello, I do subpages in Muse with a vertical menu by hand, now my problem is that when I saw the site and I'm on the subpage, the menu of head only shows the active state. How can I solve this problem?

    Please check is submenu is linked to the home page, as any content or anchor bound.

    If still the same issue, after screenshot of the design mode and preview mode.

    Thank you

    Sanjit

  • My watch shows the time vertically for a few seconds after I remove it from the charger.  Has anyone else seen elsewhere?

    My watch shows the time vertically for a few seconds after I remove it from the charger.  Has anyone else seen elsewhere?

    Don't know what you mean by vertically but it is normal that the  watch to display the time briefly when removed from the charger. If the  Watch is held horizontally with the number key of Crown and side on top can be turned. This is normal and is the point of view of bedside table.

  • How to show the timer as a progress as 1,2,3,4 bar... on the modal page

    Hi Experts,

    I have a condition where the loading of the page (before the page header), I'm calling a webservice

    so I need to check the response time of this web service so I want to show the timer as a progress as 1,2,3,4 bar...

    Another is the response time is more than 10 seconds if I have to stop the process of webservice

    and to show that "No. Results" to the user.

    Please suggest a solution how to get there.

    Thanks in advance

    Concerning

    Jitendra

    This is an export of the demo app.

    http://sqlprompt.S3.amazonaws.com/ProgressBarDemo.SQL

    Original poster wanted some other features like 1,2,3,4 and stop at or after 10 seconds. Here, the framework should allow these options. You should especially the interval mark and the set value. You can check the value of stop at 100% like I did or stop at the 10 If you set the interval to 1 second.

    Greg

  • Why my iTunes office showing the time / date that I played in the last video on my iPad Air even though I have never synchronized them?

    For some reason any, whenever I watch a movie on my iPad Air, the installed iTunes on my desktop (iMac end 2012) shows the date and I watched it - even though I've never synchronized the two devices.  It's a little scary; does anyone have an idea why this phenomenon happens?  I don't have any app as installed remotely.  The operating system is fully updated on the iPad and iMac.  FWIW, my ipad is only wi - fi enabled.

    Library of music to iCloud?  (if you subscribe to iTunes game or music from Apple)

  • process the renewal - only show the last dealid

    Hi all

    my need is to exclude the double for the renewal of the agreement. During the renewed agreement the double amount in report. It happens because the same sum temporarily of shows for the two dealid.

    How it should be:

    If
    -accountno is the same
    -currencyid is the same
    -symbolic sum is the same
    -date of end (1) = date start (2)
    -dealid (1) and (2) are different
    then
    -show only the last dealid
    on the other
    -show the two

    So the 12345 dealid should not appear in the example below:
    select 111 as accountno, 840 as currencyid, 100 as nominal, date '2012-01-01' as datebegin, date '2012-10-20' as dateend, 12345 as dealid from dual
    union all 
    select 111 as accountno, 840 as currencyid, 100 as nominal, date '2012-10-20' as datebegin, date '2012-12-20' as dateend, 12346 as dealid from dual
    union all 
    select 222 as accountno, 978 as currencyid, 101 as nominal, date '2012-02-20' as datebegin, date '2012-10-20' as dateend, 12347 as dealid from dual
    union all 
    select 222 as accountno, 978 as currencyid, 102 as nominal, date '2012-02-21' as datebegin, date '2012-12-18' as dateend, 12348 as dealid from dual
    How can I make it?

    Hello

    Here's another way:

    SELECT     *     -- or whatever columns you want
    FROM     table_x  e
    WHERE     NOT EXISTS (
                         SELECT  0
                     FROM    table_x  l
                     WHERE   e.accountno     = l.accountno
                             AND     e.currencyid     = l.currencyid
                     AND     e.nominal     = l.nominal
                     AND     e.dateend          = l.datebegin
                     AND     e.dealid        != l.dealid
                 )
    ;
    

    This makes fewer assumptions than the Kim on the dates being unique, in order or which overlap.

  • Can I make composer show on iTunes.  It only shows the artist and I want to show composer.

    I wish my iPhone to show the composer on iTunes during the playback of a file.  It shows only the name and the album and artist.  For classical music, it is not enough.  Composer is very important.  Y at - it a display menu for what you want to see everything as there is on the version of iTunes regular pc?

    Do you mean the music app on your phone? It is not referred to as iTunes on the phone.

    The last music player is very minimal.  Artist and title seems to be it.

    Apple let know here > > > http://www.apple.com/feedback/iphone.html

  • Mini displayPort to VGA only show the Office

    I just bought a display port adapter and now only my MacBook Pro is connected to the screen of the Dell displays my desktop screen saver. Any ideas?

    Which version of OSX?

    Looks like you are using extended desktop (updated vice mirrored) with the MacBook screen is the main screen. In this case the second sceen will not show the office.

    Maybe this will help you

    OS X Yosemite: connect multiple monitors to your Mac

    It is similar to the other versions of OSX

  • ADAPTER DOUBLE BAND ONLY SHOW THE 2 GHZ RANGE, HAVE LOST 5 GHZ BUT PRESENT ON ALL OTHER PCS

    I inadvertently "REMOVED" the recognition of 'network' of 5 ghz on a menu that allowed me to "remove unnecessary networks."  I thought I was doing the right thing, but deleted by mistake the 5 ghz. Now I just can't side 5 ghz of the card to show as an available network when I click available networks at the bottom right of my screen.

    My dual band router LInksys is certainly put 2 and 5 ghz because I can see them on other PCs in the House and my Iphone6. It's only the HP All In One which now lacks the recognition of 5 ghz.

    It was working fine before my despicable act. I could easily switch between 2 ghz or 5 ghz...

    I rebooted router and reset I can see the 'admin' menu for the router on this computer.  I restarted my HP. I tried to restore my pc soon, and no effect. It seems that somehow I just simply deleted a vital statement or turned a vital switch that prevent this receiver WiFi HP-receive adapter or by switching to the 5 ghz range and the value by default only the 2 ghz.

    My system details also show that it is a working adapter RALink 3290 80211 bgn

    Is there a way to turn this back on? How do I re - establish the 5 ghz network on this HP?

    Any help out there?

    George P

    You are the very welcome.

    That is right.  No 'a' doesn't = No 5 GHz.

    I can't explain why you thought you saw other 5 GHz networks on your PC.

    The only wireless networks that should be visible on your PC are only in the 2.4 GHz band, because it's all Ralink card in your model can see.

    You might be able to replace the card with a wireless card dual band but I can't say for sure.  Some PC have a BIOS lock that prevents users from installing a different wireless card.

    You would have to make sure your PC has two antennas connected to the current Ralink wireless card because all dual-band cards have at least two terminals of the antenna to connect to.

    I would say the best thing you can do would be to go to your local office supply store and pick up a wireless network adapter dual band USB external.

    They now power USB wireless adapters, so you can get one of these.

    You wouldn't have any compatibility or hardware issues with an external USB card and not worry about BIOS locks or the number of antennas inside your PC.

  • Some how my address book is only showing the personal address list and not list collected and the list of groups. How can I restore these

    I don't know what happened, but the display of my address book has changed for visible group names and also a visible tab to show the collected addresses. I see now are the personal address list

    Open the address book
    In the Menu bar select view-page-directory pane

    No menu bar? Press the ALT key.

Maybe you are looking for

  • What are the causes of the emails go into the important folder?

    Some emails go in the incoming file and also the important file. Can I report shippers selected for their emails still go into the important file?

  • L20-182: problem with battery LED

    HelloI have a problem with a light that indicates the battery charge rate. After having disconnected the outlet, the battery light to the front of the computer lights but not the light battery. Someone had such a problem? Thanks in advance for the he

  • Screen sideways

    my screen is sideways (thanks to the cat). Does anyone know how to fix this?  Never seen anything like this before.  Thank you!

  • EBS Url change

    Hi team,My EBS Url http://drerp.emaarec.com:8081 is configured with DNS entry drerp.emaarec.com by changing below the values in the context file.< < externURL oa_var = "s_external_url" > drerp.emaarec.com < / externURL >< < webentryhost oa_var = "s_w

  • Reference Dell optiplex usff 760 nothing appears on the monitor

    Running vista business. Thus, the PC does not display anything. I hooked up another monitor, changed the strings and still nothing. I also checked the original monitor, and is not the problem. Before the problem occurred, I uninstalled nvidia graphic