DMXzone Database Connector ASP Support Product Page

Answered

custome WHERE clause

Asked 27 Aug 2014 14:39:45
1
has this question
27 Aug 2014 14:39:45 jh mcright posted:
how do i add a more specific where clause? I want it to be some thing like: WHERE dateadd(day, -30, getdate())

Replies

Replied 27 Aug 2014 15:38:01
27 Aug 2014 15:38:01 Teodor Kuduschiev replied:
Hello,
Could you please be a little more detailed explaining what exactly do you want to achieve?
Replied 27 Aug 2014 16:19:07
27 Aug 2014 16:19:07 jh mcright replied:
Sorry, I would like to show items that have been received in the last 30.

SELECT * FROM itemTable WHERE lastRecievedDate was within the last 30 days from today

Should be something like this: (day, -30, getdate()) . but I can not enter it anywhere like i could in the old DW bindings panel.
Replied 28 Aug 2014 17:46:10
28 Aug 2014 17:46:10 jh mcright replied:
Nevermind; I can just use a jquery between datepicker. Can you point to info on that if you have some. I am having trouble with it.
Replied 28 Aug 2014 22:42:40
28 Aug 2014 22:42:40 jh mcright replied:
Nevermind again, Just saw your date picker extension.
Replied 29 Aug 2014 08:56:12
29 Aug 2014 08:56:12 Teodor Kuduschiev replied:
Hello,
You can use DMXzone Calendar 2 in order to create date-range filter.
Replied 29 Aug 2014 13:10:48
29 Aug 2014 13:10:48 jh mcright replied:
My dates are formatted like this: "LST_RECV_DAT":"2014-08-23T00:00:00"
Is there anyway to add the "T00:00:00" to the end of the yy-mm-dd in the Calander 2 extension? I can not get any results unless the date is exact, even when using "contains". If I can get this to work I will Buy this extension immediately.
thanks

Reply to this topic