Results 1 to 2 of 2

Thread: what is the exact format for date_modified using API for Notes Module?

  1. #1
    allyforce is offline Sugar Community Member
    Join Date
    Dec 2007
    Posts
    29

    Default what is the exact format for date_modified using API for Notes Module?

    When I use the API to figure out what the date fields format is for Notes, it just says 'datetime'.


    What exactly is it expecting using datetime? I am using a standard .to_date method which outputs 08-08-10 for example, but I'm not clear what, exactly is it expecting.

    Is there anybody who knows and has created Notes or perhaps someome from SugarCRM who can clarify (is there anyone going to supplement the API docs to make it more usable?)
    My SUGARCRM 5.0.0 Environment:

    Version 5.0.0 (Build 3095)
    MySQL 4.1.20
    PHP Version 5.0.4
    Apache/2.0.54 (Fedora)
    Virtual Private Server at 1and1.com

  2. #2
    datasponge is offline Sugar Community Member
    Join Date
    Mar 2008
    Location
    San Jose, CA, USA
    Posts
    553

    Default Re: what is the exact format for date_modified using API for Notes Module?

    Hi Allyforce,

    Sugar does a lot of operations on dates, so display dates are different than dates stored in the database.

    In MySQL, dates will have a standard format of 'YYYY-MM-DD HH:MM:SS' so for example today's date of August 9, 2010 10:55 AM (and let's say 27 seconds) would go to and from the MySQL database as '2010-08-09 10:55:27' and it would be a string in the API (I'm not sure how it's actually saved, but that's an internal MySQL issue).

    Sugar saves all dates as GMT time, so they are adjusted to GMT time on save and to Local time on retrieve.

    You can control the dispaly format of local date and time in Admin panel on a per user basis.

    Phil

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 5
    Last Post: 2011-01-18, 07:43 AM
  2. Replies: 4
    Last Post: 2009-10-14, 05:36 PM
  3. Search by exact phrase
    By danweifis in forum Help
    Replies: 2
    Last Post: 2009-09-22, 12:18 PM
  4. exact code where the link is specified
    By niminmp1 in forum Help
    Replies: 1
    Last Post: 2007-08-16, 07:56 AM
  5. Replies: 0
    Last Post: 2007-08-13, 06:31 AM

Tags for this Thread

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
  •