analysis of date to another language

Hello!

I use HttpDateParser.parse (string).

When the string is in Portuguese language (for example: "Qua, 6 February 2012...") the result is '0 '.

What should I do to parse the date on the Portuguese language?

Best regards

Thks Peter for your help.

The situation is that I'm parsing of an XML on the Web. So there is nothing I can change from the source system.

So I adapted my code to replace the strings of Portuguese to English and then it analyzes it wth HttpDateParser.

That solved my problem.

Tags: BlackBerry Developers

Similar Questions

  • Conversion from seconds to a date in another language

    Hi all

    I am currently working on an application that uses web services to fill a web user interface.  One of the outputs is a time that is generated using the LabVIEW method 'get time in seconds'.  Do as this, I convert the value to double precision float and send it to the host (on request).  On the side of the host, I use Javascript to fill in a text box with the current measurement date and time.  To do this, I use the followign code

    var dateobj = new Date(1904,1,1);
    
    /* The variable 'time' should be the seconds since
     * midnight 1 Jan 1904 of the current measurement.
     */
    var measTime = dateobj.setSeconds(time);
    

    When I do this, what I find is that the time is in fact a month off the coast.  I can fix this by changing the date of the creation of my "dateobj" on December 1, 1903.  Someone has seen this before, possibly in another language?  It is not beyond the realm of reason that I do something wrong, but I can't seem to get it right now that.

    Thanks, Matt

    OK... it is pretty lame, but proves to be a js problem and not a problem of LV.  Months are 0-based.  so... Jan is 0 js world.  Ugh... Detective Conan.  For those interested, here's an example:

    http://jsfiddle.NET/4gc9r8gy/2/

  • When I right click on my desktop the menu comes from half in another language

    When I right click on my desktop, the menu comes half in another language.  Any thoughts on how to fix it?

    Original title: Office properties?

    If you do not know the language overall is English or any other language, you can try this:

    Go and account administrator, go to the following location and delete the file FNTCACHE. DAT:

    C:\Windows\System32

    Then, restart the PC and check.

  • Cannot move a server from a data to another store.

    Hello

    First post on the forum

    I can't move one of my server VM to a data store (when it stops, of course).

    The "migrate" option is disable.

    If I clone this server, I can move the clone to a store of data to another, because the migration option, is to allow.

    You have an idea?

    Thank you.

    Hello

    Try to remove the virtual machine to inventory and back again to see if that helps

    http://KB.VMware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalID=2044369

  • Why is ee another language sign on ogf top of page

    When I use Firefox, sometimes I'll see another language written at top of page. I don't know what language it is, but why do you believe that I have this

    Do you mean on the tab bar? It might be the problem with McAfee SiteAdvisor. Could you take a look at these previous discussions and see if it looks like it:

  • ZTE open c. keyboard for another language. and lockscreen wallpaper

    Must say, this is a huge improvement from the Open original.

    Now, can someone tell me where to find the keyboard for another language, and where can I change backgroubd for lock screen?

    Thank you

    The first lock, the Lockscreen wallpaper is the same as the desktop wallpaper. After unlock the screen and close it, the Lockscreen wallpaper is the default wallpaper. The wallpaper is always the same.

    It's a known version 1.3 bug https://bugzilla.mozilla.org/show_bug.cgi?id=1034936 (default version on ZTE C OPEN)

  • Fields on several Internet sites have been changed in another language. The browser is set to English, and this problem does not occur with Chrome.

    Fields on several Internet sites have been changed in another language. The browser is set to English, and this problem does not occur with Chrome. Specifically, a large part of Tumblr and Facebook menu has been changed in another language (Russian, I think). I tried reinstall Firefox, clear the cache and reset firefox to its default state. None of them helped. Any suggestions on how to fix this?

    Hey again,

    Sometimes a problem with Firefox can be a result of malware installed on your computer, you may not be aware of.

    You can try these free programs to search for malicious software that work with your existing anti-virus software:

    Microsoft Security Essentials is a good permanent antivirus for Windows 7/Vista/XP, if you do not already have one.

    More information can be found in the article troubleshooting Firefox problems caused by malware .

    I hope this helps!

    Curtis

  • I type a Web site and get back the site in another language, how do I turn off

    When I type a Web site, it returns on the site, but in another language. For example:

    If I type: 'www.google.com', in return he takes me to the "www.google.com/pr", which is in Spanish.

    If I don't want to go, I just type.

    Can it be disabled?

    Hi, it only happens to google or another site too?

    If your life in "Puerto Rico", it takes to google.com.pr, because services based on google always go with location.

    Try google.com/ncr for google.com

  • Import data from another browser - only a few favorite IE9 are transferred in bookmarks. Solution HTML - HTML file all Favorites OK, but same result

    Win7 / IE9: use for the first time. Example: A folder of Favorites has 4 entries HTML - only 2 transferred. Some have none transferred - empty folder. Others have correct random + some disappeared persons.

    All of Monday
    I can see the full list of favorite IE9 HTML in HTML file on desktop with Firefox-> new tab-> open file-> open
    .
    In the desktop HTML file, there are 37 files IE9 with no more nesting 3 deep in all of a high. They are all correct wrt favorite IE9.

    All records albums + deeper nests are copied in FF ok. Random content. Copied content works ok

    7 unassigned to IE9 HTML web sites best records are also copied <-these 7 copy on FF and work well

    Example: First file in the list of IE9 has no nesting., IE9 has 4 entries - Firefox has only 2. What other method of reproduction is used.

    BTW - please let know us how I can delete entire list of bookmarks in Firefox button to try again with a clean list of bookmarks

    I'll uninstall Firefox and start over with a clean copy and use the HTML only method to try to transfer IE (files. I'll bring result.

    BTW, I'm in the United Kingdom at the time of UK - where delays to answer - need to sleep sometime!

    Tuesday night

    Hello

    I uninstalled Firefox. Re installed and loaded with favorite IE9 to HTML file.

    All seem to be copied correctly

    First time that I started using the "import data from another browser. Partial is copied.
    Then I tried 'Import HTML file' without deleting any favorite had been copied. Always partial copied.

    Everything seems fine.

  • Why I get emails in another language?

    Why I get emails in another language? I would like to than the English. I don't know what they send me, or how to change...

    Who sent you those emails?

  • I couldn't add the Favorites of internet explore because "important data from another browser" are gray

    I tried to import favorites to internet explore, but I find the tab 'import data from another browser' was grey (not active)

    Make sure that you are not Firefox running in permanent private browsing mode.

    To view the history settings and cookies, choose:

    • Tools > Options > privacy, choose the setting Firefox will: use the custom settings for the story of
    • Uncheck the box: [] "always use the navigation mode private.
  • I want to import my IE Favorites but "import data from another browser" is grayed out and is not an available choice.

    Following the instructions of Firefox to open the library - import & backup tool - the drop down choice for "Import data from another browser" this choice is grayed out and unavailable. I don't know how to import my IE Favorites.

    Make sure that you are not Firefox running in permanent private browsing mode.

    To view the history settings and cookies, choose:

    • Tools > Options > privacy, choose the setting Firefox will: use the custom settings for the story of
    • Uncheck the box: [] "always use the navigation mode private.
  • When you try to import the bookmarks, the ability to import data from another browser is not active in the import and backup from the tap in the history. So, how to import bookmarks on my file?

    I followed the instructions of Firefox to import bookmarks/favorites to Internet Explorer. It does not work because the import data from another browser is not active in the import tab and backup in the history. The instructions read to use this tab, but does not work because it cannot be selected.

    Make sure that you are not Firefox running in permanent private browsing mode.

    To view the history settings and cookies, choose: Tools > Options > privacy, choose the setting Firefox will: use the custom settings for the story of

    • Uncheck the box: [] "always use the navigation mode private.
  • How can I download and have another language?

    Hello

    How can I download and add another language to those on my laptop without the windows disc?

    Hello

    Only Windows 7 ultimate or Windows 7 Enterprise Edition can have:

    https://support.Microsoft.com/en-AU/KB/972813

    What is yours? You can follow the instructions to download.

    Kind regards.

  • How do 9229 trigger by analysis of data

    Since 9229 (USB casing) has no external analog trigger; the signal lasts 12 seconds.

    I need to scan data collection the long, until the trigger threshold voltage is detected, then beginning to collect 12 seconds signal.

    But after the detection threshold, some data may already lost when the start of collection time 12 seconds.

    Also ' How do make a scan ", the scan to read th data should be in a loop. If set the duration for each big loop, then maybe the loss of data, but if too samll, then can make the Windows.

    Any suggestion how to read the analysis of data from the device. Thank you.

    Hi Turbot,

    You can just continuously sample and store the data in the table.

    If the size of the data is greater than 12 second pad just outside, and the threshold is reached, use the subset of table data to select just 12 second part.

    You can see my attached sample for more information.

    Sincerely, Kate

Maybe you are looking for