Results 1 to 4 of 4
  1. #1
    javaWannabe is offline Member
    Join Date
    Mar 2012
    Posts
    2
    Rep Power
    0

    Default Convert double to Date

    Hello everyone i am having problems converting double to a date! can someone please write me a piece of code converting double into a date?

    your help will be really appreciated!!

    thanks in advance.

  2. #2
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    4,041
    Rep Power
    10

    Default Re: Convert double to Date

    First of all, how do you convert from a double to a date? What date is 1.7? .0003? Pi?

    Secondly, nobody is going to "write you a piece of code". That's not how this works. Ask a specific technical question and provide an SSCCE demonstrating exactly what you tried and where you're stuck, and we'll go from there.
    How to Ask Questions the Smart Way
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  3. #3
    javaWannabe is offline Member
    Join Date
    Mar 2012
    Posts
    2
    Rep Power
    0

    Default Re: Convert double to Date

    thanks for responding so soon KevinWorkman what i meant to ask is that if there is a way to convert double e.g 23.233 to date e.g 1 January, 2012
    using built-in java objects i can't provide an SSCCE demonstration because my code is is too plenty.

    thanks in advance

  4. #4
    Diargg is offline Senior Member
    Join Date
    Feb 2012
    Posts
    117
    Rep Power
    0

    Default Re: Convert double to Date

    Can you convert 23.233 to 1 January, 2012 ? I can't :(
    If you can't, the computer can't either. Unless you tell it how.

Similar Threads

  1. convert integer to double
    By himanwish in forum New To Java
    Replies: 4
    Last Post: 03-17-2011, 02:55 AM
  2. Convert from string to double
    By Lord ice in forum New To Java
    Replies: 4
    Last Post: 12-12-2010, 06:27 PM
  3. convert String date to Date
    By computerbum in forum New To Java
    Replies: 7
    Last Post: 09-18-2010, 04:26 PM
  4. How to convert a double into a int?
    By tyang in forum New To Java
    Replies: 4
    Last Post: 02-10-2010, 11:02 AM
  5. convert string to a double?
    By javaMike in forum Advanced Java
    Replies: 2
    Last Post: 11-27-2007, 04:10 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •