Results 1 to 3 of 3

Thread: help with searching date fields

  1. #1
    ptemplin7 is offline Sugar Community Member
    Join Date
    Jun 2007
    Location
    Puget Sound Washington
    Posts
    380

    Default help with searching date fields

    I have been browsing some other posts but don't have and haven't seen a good solution to exactly what I need.
    Running Sugar 5.1b, Apache, PHP 5, Mysql 5 etcc on Linux.

    We have a customer birthday field and marriage date field. Customer would like to be able to search them (report would be nice but I'll take a listview of them) all customers with birthdays this month or anniversaries. To be able to do this I need to search on just the month. I have added the search between module (works nice!) but stilll need only the January dates no matter the year.

    Does anyone have a suggestion as to how to modify the search files to search only on the month or for the betweens ignoring the year.

    Thanks for the Help,

    Paris

  2. #2
    vishwasrao's Avatar
    vishwasrao is offline A Prolific Poster
    Join Date
    Sep 2008
    Location
    Pune,Maharashtra,India
    Posts
    385

    Smile Re: help with searching date fields

    Quote Originally Posted by ptemplin7 View Post
    I have been browsing some other posts but don't have and haven't seen a good solution to exactly what I need.
    Running Sugar 5.1b, Apache, PHP 5, Mysql 5 etcc on Linux.

    We have a customer birthday field and marriage date field. Customer would like to be able to search them (report would be nice but I'll take a listview of them) all customers with birthdays this month or anniversaries. To be able to do this I need to search on just the month. I have added the search between module (works nice!) but stilll need only the January dates no matter the year.

    Does anyone have a suggestion as to how to modify the search files to search only on the month or for the betweens ignoring the year.

    Thanks for the Help,

    Paris
    hi ,
    I am not getting what u mean .but goto this link may it helps u
    http://www.sugarcrm.com/forums/showthread.php?t=28241
    Vishwasrao Salunkhe
    vishwasrao.salunkhe@gmail.com
    Fan Of Sachin Tendulkar
    Operating System :- Windows XP
    PHP Version:- 5.3
    Apache :-2.2.11
    MYSQL :-5.1.36

  3. #3
    ptemplin7 is offline Sugar Community Member
    Join Date
    Jun 2007
    Location
    Puget Sound Washington
    Posts
    380

    Default Re: help with searching date fields

    I saw that thread.

    For birthdays, There are many customer with birthdays in Jan but from multiple years. I need to modify the search so it picks off the birthdays for Jan only. The between search will get from Jan for one year. Need from all years. Would like to be able to search for "01" in the date field instead of 01/01/yyyy to 01/31/zzzz.
    Don't want all the other birthdays between the two years!

    Hope this helps. Do I need to convert the date field to a text field os I can search and compare?

    Thanks for any ideas, Paris

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Searching custom fields
    By AGB21 in forum Help
    Replies: 1
    Last Post: 2007-11-19, 03:52 PM
  2. searching custom fields
    By beefjerky in forum Help
    Replies: 0
    Last Post: 2007-04-17, 06:48 PM
  3. Searching multienum fields
    By russellp in forum Help
    Replies: 3
    Last Post: 2006-12-11, 08:53 PM
  4. Searching on custom fields
    By cweston in forum Help
    Replies: 2
    Last Post: 2006-07-20, 07:38 AM
  5. Searching a Custom Date Range
    By dhanell in forum Help
    Replies: 0
    Last Post: 2006-05-19, 08:18 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
  •