long integer value - setting the date of entry

Hello

I'll send a calendar event while recording up to a database on my server.

When I retrieve this entry and try to rebuild the entrance on the device, I have problems with starttime and endtime.

I use Long.parseLong (myStartTime) (in order to define the start time of the new entry) and get a number format exception.

So after struggling to find a solution, I tried to manually set for the tests.

myStartTime = 1283778000000; This is the beginning of the time value of the downloaded

I get the whole number too big.

Someone at - he also experienced difficulties affecting a schedule start time entry like this?

Please can someone offer a suggestion?

Thank you Alex

Have you tried just Long.parseLong (String)? Who will use the base 10. (Or you can specify 10 as the radix).

Tags: BlackBerry Developers

Similar Questions

  • SQL error: ORA-01840: value not long enough for the format of the date of entry

    It is a delete SQL in a driver of demand, which gives no error, but does remove all the lines either. I have converted the removal 'from' to ' Select * ' and may see the following error:

    Select * FROM PS_GPDE_DV_TRIG40 WHERE EXISTS (SELECT FROM 'X'
    PS_GPDE_DV_ELIG_MO ELG WHERE ELG. EMPLID = PS_GPDE_DV_TRIG40. EMPLID AND
    ELG. EMPL_RCD = PS_GPDE_DV_TRIG40. EMPL_RCD AND TO_DATE (TO_CHAR (ELG. PRD_END_DT
    "YYYY"). TO_CHAR (ELG. PRD_END_DT, "MM"). '01', "YYYY-MM-DD") =.
    PS_GPDE_DV_TRIG40. GPDE_DV_EVT_EFFDT AND ELG. CAL_RUN_ID = "CAL_0812")
    Error report:
    SQL error: ORA-01840: value not long enough for the format of the date of entry


    The interesting thing is that if I attach a condition of emplid, then the SQL above does not give an error and return lines:

    Select * FROM PS_GPDE_DV_TRIG40 WHERE EXISTS (SELECT FROM 'X'
    PS_GPDE_DV_ELIG_MO ELG WHERE ELG. EMPLID = PS_GPDE_DV_TRIG40. EMPLID AND
    ELG. EMPL_RCD = PS_GPDE_DV_TRIG40. EMPL_RCD AND TO_DATE (TO_CHAR (ELG. PRD_END_DT
    "YYYY"). TO_CHAR (ELG. PRD_END_DT, "MM"). '01', "YYYY-MM-DD") =.
    PS_GPDE_DV_TRIG40. GPDE_DV_EVT_EFFDT AND ELG. CAL_RUN_ID = "FM_CG_0812")
    and emplid = "1234"

    now, if the number of lines is identified (by giving more number of emplids), it begins to give the error when the number of rows returned is greater than about 30. It is completely independent of what employee is used, so there is no question of data dependence.

    Function optimizer cost is off and a subquery nest is off on the init.ora file

    subquery UNNEST= false

    optimizercost_based_transformation = off


    I don't know if it has something to do with this problem.

    Explanations would be welcome!

    Thank you
    Vikas

    I think it is question of data combined with a not very sensible date format mask (it could fail when the null data, because of your concatenation with '01' and work when not null data).
    Have you tried with a simple TRUNC?

    Your code:

    ...TO_DATE(TO_CHAR(ELG.PRD_END_DT, 'YYYY') || TO_CHAR(ELG.PRD_END_DT , 'MM') || '01' , 'YYYY-MM-DD') =PS_GPDE_DV_TRIG40.GPDE_DV_EVT_EFFDT...
    

    After change:

    ...TRUNC(ELG.PRD_END_DT , 'MM') =PS_GPDE_DV_TRIG40.GPDE_DV_EVT_EFFDT...
    

    Nicolas.

  • Setting the Date

    My new laptop HP - 17 t - x 000 CTO (ENERGY STAR) will not hold the correct date. It starts in 2091. Once I have corrected, he returned at random to 2091. Can someone help me? Thank you-

    Hello

    Verify that the correct date is set in the bios as follows.

    Shut down the laptop.  Tap away at the esc you key start Notepad to open the Start Menu.  Select the option in the Bios ( f10 ).

    If the hour / date here is incorrect, you can correct it as follows.

    You should see that the first field highlighted is the time value - set this to the correct time by using f5 and f6 (f5 will decrease the number & f6 it will increase).  When it is correct, press ENTER to highlight the Minute field and again, use f5 and f6 to set the correct minutes.

    When finished, press the arrow down to select the first Date field.  This should be for the month, so use f5 and f6 to enter the correct value.

    Press Enter to highlight the field day and this, and then press ENTER to highlight the year field and then set this.

    If you are happy with the settings of Date and time, press f10 and press ENTER to save the settings and exit the bios.

    Let windows load completely.  If the Date and time correct does not appear, go to the control panel and set the Date and time correct here.

    Restart computer and check if this has fixed the problem.

    Kind regards

    DP - K

  • Simple JavaScript to set the date

    Hello

    My simple JavaScript to fix the date runs in Acrobat Pro, but when I open the same document the reader he sets the date, but it fails with a pop off getField error dialog box... Here's the error tracking script...

    function populate_date()

    {

    var f = this.getField ("ToDay_Date");

    If (! f.value) f.value = util.printd ("d/m/yyyy", new Date());

    }

    populate_date(); call my function

    Above scripts executed when the document is opened. As a Pro, it is stored under Tools/JavaScripts/Document JavaScript...

    When I open it in the drive then I get the following while he dates the date presented too!

    The built-in functions of EScript Acrobat Version 11.0
    Acrobat SOAP 11.0

    TypeError: this.getField is not a function
    2:folder - level: App:Search Script.js

    I have not put right that I get this error...

    Kind regards

    Jeff P.

    I don't understand what you're talking about... The error message made clear reference to a script of level of the folder called 'search Script.js'.

    You must look for the source of the problem here.

  • How to add a pop-up window to set the date and time in a field

    How to add a pop-up window to set the date and time in a field? I know how to add the date. I create the field time with JavaScript event initialize like this:

    this.rawValue = num2date(date(), DateFmt(4));
    

    What I should change the script and the motive to do it properly.

    I changed the Format of data (object > link tab) date time but nothing happen. I want to set up a pop-up window as for the setting of date but with addition of time setting.

    Is this possible? Or that the date fixed like that? Should I get hour hand?

    Hello

    I don't think you will get both in the calendar popup. Basically, the popup calendar is the default behavior. It may be possible to develop a custom component, but it would take a bit of scripting and would probably not be worth the effort.

    I'd get the user to time manually entry in a separate field.

    Good luck

    Niall

  • Set the Date of Expiration of account in AD

    How set the date account expiration in AD when an end date is defined in the IOM on creating an account? I created a pre-fill adapter in my AD form which corresponds to the Date of the end of the IOM. This gives a java.lang.ClassCastException: java.lang.String cannot be cast as a java.sql.Date error.
    I have to get the date in a custom adapter convert to date and then set it up? I tried using ud_aduser_date as a field whose value has been set. Did nothing.

    You can access data on the forms of process and the Forms user since any custom adapter.

    The design model standard of creating a field on the form of process is used to facilitate the maintenance, recon, and debugging.

    It is worth noting that AD uses a special date to the expiry date format so if the output of the connector box lacks the functions to set the expiration date in AD wou will manually create the logic of translation.

    Best regards
    / Martin

  • Evolution of the null value in the data view tab

    Is it possible to update a null value in the data view table tab? When I delete the value, it creates a sql such as

    Update table set column is where id = 1;.

    How to fill a null from the data tab?

    I met (and displayed) on this same problem some time. (See forum article "invalid column index: getValidColumnIndex" in SQL Developer 1.5.4 . "") Jim Smith pointed out it seems to be the reappearance of an old bug.

    There are some alternatives. One is "do-it-yourself" in the SQL or SQL worksheet * more. (I.e., "UPDATE someTable SET someColumn = NOTHING WHERE tablePKColumn = pkValue;". The other is to use an earlier version of SQL Developer for that in the view of table data. (I still have Developer SQL 1.5.1 installed just for this reason).

    I hope this helps.

    Hrsg.:.

  • How to set the date and time on my HP Officejet pro 8600 more?

    How to set the date and time on my HP officejet pro 8600 more?  It just on a printed journal Jan-oo-oo fax shows 00:00 AM.  There are no instructions on how to change this.  I need proof that I sent a fax to a certain date and time.  Help, please.  Thank you

    Hello

    Below are the steps to set the Date and time for your device:

    1. On the Control Panel, press the right arrow key ( ), press Setup ( ).

  • How can I enter BIOS compaq610 screen and set the date, time

    How can I enter BIOS compaq610 screen and set the date, time

    Hello

    See Page 94 or Page 100 (according to what's relevant) of your & Maintenance Guide.

    Kind regards

    DP - K

  • What is the minimum value for the data type double?

    ... a more academic question: what is the minimum value of the data type double? I thought 'double', it is the 8-byte IEEE standard and what I remember, it's + - 1.7E + - 308.  The more different number of 0 should be 1.797E - 308.

    This is why I was a little surprised when I looked at the data output of my calculation of CVI, where I found the numbers with exponents of E-319 or E-324 as the smallest value...

    But I'm sure there's an explanation :-)

    Thank you for sharing with me,

    Wolfgang

    The largest number is indeed the order of + 1.7E + 308; There are a smaller number of - 1.7E + 308. Note that this is in fact the most negative number, which is the smallest by some reckoning. For the small beach of the Exhibitor, things get a little more complicated. 1E-308 can be represented with complete accuracy and resolution, but if you're willing to lose a few bits of precision, you can go down even further. For example:

    Double x, y, z:

    x = 1E-300;

    y = 1E7;

    z = x / y;               Give 1.000000000000000E - 307

    y = 1E8;

    z = x / y;               Give 9.999999999999999E - 309

    y = 1E18;

    z = x / y;               Give 9.999987484955998E - 319

    y = 1E23;

    z = x / y;               Give 9.881312916824931E - 324

    So, as you can see, values less than 1E-308 are possible, but they become increasingly more inaccurate and should not be relied upon.

    JR

  • How to set the Date and time on a remote target in Measurement & Automation Explorer (MAX)?

    Hello

    I'm trying to follow the steps described in the following link:

    How to set the Date and time on a remote target in Measurement & Automation Explorer (MAX)?

    It is said

    The software on the target currently supports only the time zoneand deletes the old files?

    I need set the date and time

    and remove all the old unwanted files

    the calendar was gray does not allow me to change the current date.

    Anyone know how to change

    Hi all!

    According to this the below Knowledge Base article, Remote Configuration System Support must be installed on the target for time settings to change in MAX.

    http://digital.NI.com/public.nsf/allkb/FAB0EC4D6E5EE0F386257738005733A3?OpenDocument&MeTC=max_MAXDat...

    If you don't know what version of the system supported remote Configuration software that you have installed on your device target, it is likely that it is not yet installed. Add this software by clicking below your target to the MAX software option and selecting "Add/Remove Software". This is where you will install the System Configuration Remote Support software.

    Please let us know if you have any questions!

  • I have not set the date on the camera, how do I change the date on the picture

    I have not set the date on the camera, how do I change the date on the picture

    Thank you

    Maybe some help here: http://windows.microsoft.com/en-US/windows-vista/Change-the-date-and-time-a-picture-was-taken

  • How to set the date and time on an hp j5780?

    I need to know how to set the date and time on an HP j5780!

    Help!

    Thank you very much, we did it!

    WY

  • How to set the data in InvokeQuery?

    I seem to be unable to set the data property into an InvokeQuery. I have the following code...

    Invocation
    {
        id: shareInvoke
        query: InvokeQuery
        {
            id: shareQ
        mimeType: "text/plain"
        data: ["TEST"]
        invokeActionId: "bb.action.SHARE"
         }
    }
    

    Yet, every time I call it, the data are never there...

    Nevermind, I found the problem.

    Invocation
    {
        id: shareInvoke
        query: InvokeQuery
        {
            id: shareQ
        mimeType: "text/plain"
        data: "TEST"
        invokeActionId: "bb.action.SHARE"
         }
    }
    

    The above works. It gives an error. But it works.

  • Current value of the data cache 0

    Hi all

    The database I have is responsible, however, the CURRENT VALUE of the DATA CACHE, CURRENT VALUE of the INDEX CACHE, etc. show all 0.

    What could be the reason why it shows 0?

    He must have some numbers right?

    Thank you

    Is there a schema and data in the cube?

    I'm a little surprised by the index cache data cache may not be transferable by any space until you do really something with the data of the cube (extract, load, calculate, etc.) but key cache seems to be filled immediately.

Maybe you are looking for

  • Please tell me where the sim card goes in this thing

    I just this CDMA milestone and try to pass. Battery & memory card but does not see anywhere to put my sim card. Can't find anything online... anyone can please help?

  • Keep the Focus on the button after mouse click

    Hello I have a button in my VI that triggers a function. I would like to know how can I keep the focus on the button after clicking with the mouse over it? I ask that because I want that after the first click, the focus is kept on the button then I c

  • Need of old Platform SDK (October 2002 and February 2003)

    I need to download an October 2002 and February 2003 SDK Windows so I can build a debug version of an earlier application in Visual Studio 6.  Where can I find either of these two software to download development kits?

  • Volume with my rocket problem.

    Hello. I just got my 4 GB Fuze. When I tried to turn the volume to about 70% or more just sound cuts in and out. If I leave the volume under this level everything seems fine. Any idea? Thank you.

  • BlackBerry App music Q10

    My playlist lost all my songs downloaded, disappeared... How can we recover the songs? Thank you