Ask a Question related to Coldfusion - Getting Started, Design and Development.

  1. #21

    Default Re: Date problem

    If you're doing it with dropdowns, you'll want to do something like:

    <select name="month">
    <cfloop from="1" to="12" index="i">
    <option value="#i#" <cfif i eq month(now())>selected</cfif>>#monthAsString(i)#
    </cfloop>
    </select>

    Then do something similar for day and year.

    After submit, you can use createDate(form.year, form.month, form.day) to put
    them back together into a proper date variable.

    Kodezilla Guest

  2. Similar Questions and Discussions

    1. Print Date Problem
      Hi, I am a PC user and have incorporated a document javascript that updates the print date at the bottom of the page to the current date. The...
    2. date query problem, date in variable
      I am using the following query : $query_archief = "SELECT * FROM vacatures where dd_eind_plaatsing < $dd_eind_plaatsing_archief1" note:...
    3. PHP Date Problem
      ok, I have a timestamp column in my db, and I need to check it against the current time in php. I am trying to create an if statement that will do...
    4. [PHP] date problem
      From the documentation: http://ca2.php.net/manual/en/function.mktime.php "Date with year, month and day equal to zero is considered illegal...
    5. Problem with date('w')
      Hi I have a problem with the date function <? $theday = date("Y-m-d", time()); echo date((w), $theday); ?> should print 1 if today is...
  3. #22

    Default Re: Date problem

    Hi

    still if you dont want any bugs then you can use the JS which will display
    some date popups to choose, and select from that popup. so that you dont
    require to do any validations.
    still If you are using MX7 with flash screens there is a date popups are
    available (i think so).

    vkunirs Guest

  4. #23

    Default Date Problem

    Using RemoteObject, I get a date from a SQL Server 2005 database and pass it
    through a CFC to Flex.

    Using a test file I can generate the output of the CFC and the date shows as
    2007-10-27 15:50:00.0 which is the correct date/time in the database.

    If I run the swf and immediately call toString() on this returned date in
    Flex, it shows Sun Oct 11:50:00 GMT-0400 2007


    In other words something has added 4 hours to the date.

    Does anyone know what is going on here?


    larcelarcen 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