Dave,

> <cfscript>
>          /**
>   * Parses the UK formatted date string and converts it to an 
> ODBCDate.
>   *
>   * @param date2fix       The date to correctly format for ODBC.
>   * @return Returns an ODBC formatted date.
>   * @author Dave Phipps ([EMAIL PROTECTED])
>   * @version 1, January 7, 2003
>   */
> function fixedDate(date2fix)
>          {
>          if (LSIsDate(date2fix))
>                  if (ListLen(date2fix, "/.-") EQ 3) {
>                                  day = ListGetAt(date2fix, 1, "/,.-");
>                                  month = ListGetAt(date2fix, 
> 2, "/,.-");
>                                  year = ListGetAt(date2fix, 
> 3, "/,.-");
>                                  date = "#month#/#day#/#year#";
>                                  fixedDate = CreateODBCDate(date); }
>                  else
>                          fixedDate = CreateODBCDate(Now());
>          else
>                  fixedDate = CreateODBCDate(Now());
>          return fixedDate;
>          }
> </cfscript>
> 
> Am I overwriting the fixedDate() function in the above code?

Probably.  Just change the names and see what happens.  Easiest way to test
it!

If you use var day and var month etc you may not have a problem (as Rich
says)

Paul




-- 
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]

Reply via email to