DoB to age converter

Ask a Question related to Macromedia Exchange Dreamweaver Extensions, Design and Development.

  1. #1

    Default DoB to age converter

    hey everyone. I'd like to be able to convert a users date of birth (from data
    gathered from a form) into there age for use in my site, the member profile
    page to be exact. at the moment i'd have to update their age manually but i
    need this to be done via some sort of script of extension. I don't really know
    the best way to go about this so i hope i'm asking in the right place! I've
    just spent all evening getting pretty much nowhere by sifting through
    javascript sites so if anyone has any idea's?

    cheers

    kev

    innaminit Guest

  2. Similar Questions and Discussions

    1. FLV To .WAV/.MP3 converter
      I know there's been a lot of talk about the NellyMonster codec. I've spent a week coding my own linux based equivalent of Flash Media Server/Red 5,...
    2. XSI-W3D converter 404
      There used to be a XSI to W3D converter here: http://www.softimage.com/download/xsi/converters/shockwave/ But now it says page not found and I...
    3. .obj converter for OSX
      Hi there I am a newbie at 3D Director so please forgive me if a silly Q, but I went to the download page to download the obj converter and there...
    4. .obj converter for mac?
      I found that speedport is no longer on the downloads page, I'm assuming that is because it doesn't work in MX 2004. There is a .OBJ converter but...
    5. 3d converter
      where can i find the converter for 3d max to a file that can be imported in to the directir? and where can i find the same for the MAYA software';?...
  3. #2

    Default Re: DoB to age converter

    Are you storing this profile in a database?
    skip JavaScript- store the birthdate, and do a calculation of the person's
    age when retrieving it.

    what flavor do you need? php? asp?
    sample code for php-
    [url]http://us4.php.net/date[/url]
    look in the comments below the tech manual.


    Alan Guest

  4. #3

    Default Re: DoB to age converter

    i'm not storing the profile in a database. I'm using html and javascript (via
    the 'set text' behaviour in DW4) to make a profile appear in a layer when a
    name is clicked ([url]http://3cmc.com/profiles.htm[/url] ). It's not a very efficient way
    of doing it but as the site is part of a course in dreamweaver that doesn't
    cover database use i'm stuck with it.

    I want to add some javascript to the profile html so i can enter the DoB and
    the code will change it to show the users age. If i can use any other code
    (such as php) then great.

    innaminit Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139