Get the Date and time of the given Date.

Hello everyone,

I'm stuck in a problem in my project.

I have form having two ChoiceField

1 day

2 months

I want the Date like this -"sam 12 08:45"...

When the user select the date and the month of the ChoiceFields.

Please it is urgent help me.

Thanks Tita.

Little bit of change in your Code

And now its works very well.

            Calendar calendar = Calendar.getInstance();
            calendar.setTime(new Date(System.currentTimeMillis()));
            calendar.set(Calendar.DATE, 23);
            calendar.set(Calendar.MONTH, 7);
            calendar.set(Calendar.YEAR, 2010);
            SimpleDateFormat dateFor = new SimpleDateFormat("EE dd MM");
            String string = dateFor.formatLocal(calendar.getTime().getTime());

Thank you and best regards

Nitin Verma.

Tags: BlackBerry Developers

Similar Questions

  • SQL query to get the given result

    Hi friends

    My data in the table are given below

    user transaction_date transaction_type
    1 1st August 2011
    August 2, 2011 1 c
    1 3 August 2011
    1 b 3 August 2011
    1 August 4, 2011 a
    1 b 4 August 2011
    2 3 August 2011
    2 b 3 August 2011
    August 4, 2011 2 c
    2 b 4 August 2011
    2 August 5, 2011 a
    2 b August 5, 2011
    2 August 7, 2011 a
    2 b 7 August 2011

    I want the count for each user as, how many times he made a transaction type transaction immediately after 'b' type?

    As the output of above data should be

    number of users
    1 2
    2 3

    Thanks in advance :)

    Maybe (NOT TESTED).

    select "user",
           count(criteria) "count"
      from (select "user",
                   transaction_date,
                   transaction_type,
                   case when transaction_type = 'b'
                         and lag(transaction_type,1) over (partition by "user",transaction_date
                                                               order by transaction_date,transaction_type) = 'a'
                        then 1
                   end criteria
              from the_table
           )
     group by "user"
     order by "user"
    

    Concerning

    Etbin

  • SB6141 and Time Capsule works best not Modem?

    I bought an ARRIS / Motorola SB6141 modem yesterday, unfortunately without checking here first of all support and as much I having trouble to get a SB6141 and Time Capsule to cooperate.  The modem works fine with a hard line, but when I plugged in my Time Capsule for the modem I got the dreaded flashing yellow on the TC light. Three hours of reading posts here (and elsewhere) and troubleshooting later and I am still at a loss. Rather than the fight over trying to get the SB6141 to work, I would rather just buy a modem that works (at least mostly) with the TC. I am in the area of Chicago on Comcast. List of approved here modems. Please let me know if you have found a good modem to use with time Capsule. Thanks for any help!

    Additional details - I bought time Capsule 2 TB in March this year and it's all so far (ongoing enforcement, I think, 7.7.3)

    Not on Comcast, but the use of two modems in rotation.

    Zoom 5341J and Netgear CMD31T, who all have both been impeccable since they went into service almost 2 years ago.

  • How can I get the exact time and date on my FAX LOG

    I have a new HP Officejet 6500 has more on my Dell Inspiron Windows XP computer.  How can I get the exact time and date on my FAX log?

    Hi FrederickFrank7,

    Journal of faxes would just follow the time of your printer. Please set the time and date of your printer.

    I am an employee of HP.
    Please indicate the position that solved your problem as "acceptable Solution".

  • I can not get the automatic updates on my samsung jack sgh-i616. _ "connection to the update server is not available. Check your data connection settings and make sure that the device date and time are correct "___RESULT CODE: 80072ee7__ _"

    I can't get the automatic updates on my samsung jack sgh-i616.

     

    "Connection to the update server is not available. "Check your data connection settings and make sure that the device date and time are correct.

     

    RESULT CODE: 80072ee7

     

    -It is a windows mobile 6.1

    Thank you very much! = D

    As a guide.

    This error code translates ERROR_INTERNET_CANNOT_CONNECT.

    You may encounter temporary connection related errors when you use Windows Update or Microsoft Update to install updates
    http://support.Microsoft.com/kb/836941

    Harold Horne / TaurArian [MVP] 2005-2011. The information has been provided * being * with no guarantee or warranty.

  • ETA App should help to get the time and date feature HELP!

    Hi everyone, I'm doing an application where I need to get the time and date of the antone device can help, I know there is a function such as getDate or getTime but im not to know how to use it.

    As far as I know,

    I use this to get the time system (it returns long type)

    System.currentTimeMillis();
    

    After that, you can use SimpleDateFormat to convert date and time

    SimpleDateFormat sdf = new SimpleDateFormat("dd.MM.yyyy, HH:mm");
    String time = sdf.format(new Date(System.currentTimeMilis()));
    
  • How to get the Application Build Date and time?

    Hi guys,.

    I am developing application in Cascade.

    What is the API I can use to get the construction Date of the application and Tiime?

    These macros are expanded to C-strings at compile time. This is how/where to use it. Following an example would work I think:

    fprintf (stderr, "construction date is %s, construction time is %s\n", __DATE__, __TIME__);

  • Get the sytem date and the time of the BB device

    I tried the following code may not work on a BB:

    funcon {DisplayTime()}

    info of ti s ar = System.Tie.get.localime (System.Time.curentTieZone); ....

    ... this can't work because there is no such thing as the 'system' inside the widget.

    I saw there was a very long thread for Java developers, where they finally got up to 8 or 10 lines of code get the gross system in milliseconds time, then get the offsed calendar GMT then reformat to indicate the correct time.

    UM... in the widget environment, I don't think that we have very limited ability to access the object of the blackberry.system system, and we can invoke, but not query the calendar object (I think)... of suggestions?

    would be really nice if there was only a function now().

    Kind regards

    Scott

    var now = new Date();

    Who should get the date and time to the millisecond with the GMT offset

  • How can I get the date and time function to appear as a tile

    How can I get the date and time function to appear as a tile

    How can I get the date and time function to appear as a tile

    WIN8 are delivered with this tile/app.  The only way to display the time is to launch the charm bar (Win - key + C) or mouse over to the right up/down.  That said go to the Windows store... There are several free applications that display the time / date as a live tile.  Good luck.

  • Help for a date and time string in the format of get-date

    When you take a date / time string of an object:

    The format of the entry is a string and get-date doesn't seem to be able to convert to the

    a System.DateTime.

    I want to compare this value to 30 days so there are get-date ((get-date).adddays(-30))

    When I try the following, it seems to work then import it:

    (get-date - UFormat "%d/%m/%Y %T" ("2010-06-30 00:00:00" ""))

    If I add the following:

    "[datetime]" (get-date - UFormat "%d/%m/%Y %T" ("2010-06-30 00:00:00" ""))

    He can't convert it.

    Without the datetime component, when I try a superior test uses only the date

    the part as well:

    $Test = '2009-10-06 00:00:00.

    If ($Test - gt (get-date - UFormat "%T"("06/05/2010 00:00:00") %d/%m/%Y ""))

    {

    $Tested = 'Yes '.

    }

    On the other

    {

    $Tested = 'no '.

    }

    $tested

    Results in a Yes tentatives being earlier.

    In the script it returns all records where the date is after

    as 05 and ignore the year, month, and time.

    Any help with this would be greatly appreciated.

    Thank you

    This has to do with the 'culture' that you use in your PowerShell session.

    You can use the Get-Culture cmdlet to see that one you use.

    If you try

    [datetime](get-date -UFormat "%m/%d/%Y %T"("30/06/2010 00:00:00"))
    

    The parameter - UFormat produces a string and

    the cast is expected default mm/dd/yyyy format, for the part of the date.

    So, by reversing the month and day of your UFormat string - that has been corrected.

    BTW, I have attached the line because the SW forum do not have hooks.

    ____________

    Blog: LucD notes

    Twitter: lucd22

  • Get the CURRENT Date and the time?

    Hello

    How to get the time or the date CURRENT? I need this because, am creating a (multi-line) TEXT field, when the user enters his COMMENTS / notes/comments, so I need to take care of this COMMENT by concatenating the TIMESTAMP

    For example, I opened my_form at 14:10, I received a call from TV, its about 15 min, then I'm back (the time is now 14:25) for my_form and entered some of the comments, so, I need to store these observations as well as TIME STAMPS, which means that its 14:25 (not, 14:10)

    Pls let me kmow in Java Script

    Thank you

    Here is a method.

    Date

    Form1.Page1.Subform1.DATE_::ready:layout - (FormCalc, client)

    $.rawValue = Concat (Num2Date (Date ("MM/DD/YYYY")))

    Time

    Form1.Page1.Subform1.time_::Initialize - (JavaScript, client)

    var date = new Date();

    var h = date.getHours ();

    If {(heures > 12)}

    this.rawValue = (12 hours) + ': ' + () date.getMinutes + "H";

    }

    else {}

    this.rawValue = hour + ":" + () date.getMinutes + "AM";

    }

    Steve

  • How can I get the time and date appears on a sony cyber-shot camera

    How can I get the time and date appears on a sony cyber-shot camera

    Hi terpmarty,

    What is the model number of the Sony Cybershot camera?
    Instructions for superimposing the date and time are model specific. Some models do not have the ability to superimpose the date and time too. In such a case, you can use the supplied software Picture Motion Browser (PMB) or PlayMemories home (WPH) (Compatible with the Windows operating system) to print the date and time on pictures.

  • How can I get my Hp officejet 6700 to print the date and time on the fax confirmation page

    How can I configure my officejet 6700 premium to print the date and time on the fax confirmation page?

    Hello

    As long as the date and time is set, it should automatically appear on the print.

    Is the date and time set correctly on the printer?

  • given the date and time not set when computer starts. also have a problem with typing

    by turning on my computer, sometimes it lights up at all, and then I try several times so that it lights up. When switching on the main screen, it says error due to the date and time not set and puts my computer starts in safe mode. When I am that I then have to set the date and time again. Why this keep happening?

    on my second question that I have is when I type an email or anything, my writing will just jump on another line and start typing in the middle of other sentences. Why is it jump around like that?

    You may have a failed in your motherboard CMOS battery.

    It's a battery power supply NET, size piece that keeps your system settings when your computer is off.

    They cost about $5 to replace.

    http://www.computerhope.com/issues/ch000239.htm

    How to replace the CMOS battery in the above link info.

    See you soon.

    Mick Murphy - Microsoft partner

  • How to get date and time the image was taken by programming?

    Any ideas? Thanks in advance!

    Yes, you can get the date/time of peak clicked using the FileConnection interface

    Press the button Bravo thank the user who has helped you.

    If your problem has been resolved then please mark the thread as "accepted solution".

  • I've already paid the license and I always get the notice 'We are unable to verify your subscription' every time I open the program, and the expiration date is tomorrow. What should I do?

    I have the following problem. Yesterday, I paid the license for Illustrator with my credit card and I received correctly in my e-mail, the confirmation of payment. However, whenever I try to open the program I get the following message "we are unable to verify your subscription. You are offline or there is a problem with your billing account. Sign in manage your account and check the billing data. If you have any problem or question, contact the "customer service". So, what should I do?

    Maca,

    You can try to restart the application of Creative cloud of smoke and he raises.

    Default you can try creative support Cloud (cloud creative all the customer service issues).

    http://helpx.Adobe.com/x-productkb/global/service-CCM.html

    or Support from Adobe (phone),

    http://helpx.Adobe.com/Adobe-Connect/Adobe-Connect-phone-numbers.html

Maybe you are looking for

  • Why apple did stop their 'material' servers?

    Why apple not stop their servers 'material' software, I understand that it is always available in the app store.

  • Installation of WWLan need help with i7 8560w

    I recently installed the WWLan module with SIM card and try to use it BUT...As I start the laptop, it displays an error message that new hardware not supported and therefore is disabled. I'm amazed if the hardware does not support it so what hell the

  • Can I add discrete graphics card to my laptop?

    Hi all I have a Lenovo G550 laptop. I would like to know if I can add a discreet graphics for this laptop. If Yes, could you please suggest that one should I buy? Thanks in advance for your replies and the time, Inder.

  • Aspire 5742 recovery disc question

    This is a long post.  I went through a lot of steps already.  I'm not an expert in technology, but I read directions well (most of the time), and my knowledge comes from working through the problems as they come.  I use a newer laptop to make differe

  • Intel Graphics diver for HP n-204tx for windows 7 64 bit

    I installed windows 7 64-bit. I downloaded the NVIDIA graphics driver. When I try to install it, it shows me error Install Driver first Intel. I'm looking for Intel Graphics driver for my Laptop HP 15 n-204tx (Windows 7 64-bit) HP executive support i