" /> **** System Date ***** - Genesys CTI User Forum

Author Topic: **** System Date *****  (Read 3122 times)

Offline fred.s

  • Newbie
  • *
  • Posts: 32
  • Karma: 0
**** System Date *****
« on: November 06, 2010, 09:11:24 AM »
Advertisement
Hi can anyone tell me if there is a way of getting a system date( Todays date) in filters.

ie, to select any records ">= todays date" or "todays date -20"

Thanks in advance.....

Offline Steve

  • Sr. Member
  • ****
  • Posts: 298
  • Karma: 11
Re: **** System Date *****
« Reply #1 on: November 06, 2010, 08:53:12 PM »
Maybe if you gave us a clue.  ???

What are you trying to do? What do you want filtering?

Offline fred.s

  • Newbie
  • *
  • Posts: 32
  • Karma: 0
Re: **** System Date *****
« Reply #2 on: November 10, 2010, 10:38:12 AM »
Dialing filters in config manager, on the call_time field!....

Offline Steve

  • Sr. Member
  • ****
  • Posts: 298
  • Karma: 11
Re: **** System Date *****
« Reply #3 on: November 11, 2010, 02:18:30 PM »
Fred - If you want people to help you really need to help them, give all the relevant information and say what you have done to try to solve your issue.

Dialling filters are just SQL scripts so the first step is to work it out in the database, I'm using Oracle and my call_time field is numeric (number of seconds since 1/1/1970). So I need to either convert SysDate to this format or convert call_time to a date. I'm converting SysDate and I want to find all records that were before today (less that SysDate).

[code]select call_time from my_table where call_time < ROUND(SysDate-(To_date('01011970','DDMMYYYY')))*86400[/code]

That should get you started.

Offline fred.s

  • Newbie
  • *
  • Posts: 32
  • Karma: 0
Re: **** System Date *****
« Reply #4 on: November 16, 2010, 06:48:23 PM »
:)

Super, thank you.