Results 1 to 2 of 2

Thread: Logic hook date format

  1. #1
    admdelta is offline Member
    Join Date
    Dec 2009
    Posts
    6

    Default Logic hook date format

    I have created a logic hook that creates a call when the expected close date of an opportunity changes.
    This works ok, exept for the call start date. When the logic hook is called from within sugar I have to use the date format of the currently logged in user, but when I call it through soap I have to use the database format ("Y-m-d H:i:s"). How should you determine the format?

  2. #2
    rcastro is offline Senior Member
    Join Date
    Dec 2009
    Posts
    41

    Default Re: Logic hook date format

    Try using the date of the opportunity. Something like:
    $new_call->date_field = $bean->date_modified

    where $bean is the opportunity in your logic hook and $new_call is the call you create in the logic hook.

    Hope this helps!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Argggg... Custom Logic Hook Messing up Date Field
    By jjwdesign in forum Developer Help
    Replies: 3
    Last Post: 2010-01-15, 09:06 AM
  2. Logic Hook + Passing Date to Custom Date Field
    By chrislynch8 in forum Developer Help
    Replies: 12
    Last Post: 2009-07-22, 03:58 PM
  3. Logic hook to set a date (not working)
    By LechnerJ in forum Developer Help
    Replies: 5
    Last Post: 2009-06-15, 07:09 PM
  4. Saving text with a logic hook - format string
    By twguk1516 in forum Developer Help
    Replies: 3
    Last Post: 2008-08-28, 12:16 AM
  5. Replies: 4
    Last Post: 2008-06-16, 06:35 PM

Bookmarks

Posting Permissions

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