Hello.
I would like to use dates as arguments for views. But I want to establish a range between to dates over a cck field.
For example, I have a cck field "validation_date", and I would like to filter this view with dates between "01/03/07" and "15/04/09".
I can add date arguments, but I can't set ranges, only one value to the field.
How could I do it?
T.I.A.

Comments

ace11’s picture

Hi,

You should install Date -module (if not yet installed).
Then in views choose Filter and Date: Date (node). Make right settings for you and update. Then you can choose from Operator -dropdown list "Is between".

Hope this helps!

briantes’s picture

Thanks for your answer but I would like to use it on "arguments".
My view has one arguments for userid, and I need a second argument for a date range.
I will use it with next code, but adding new parameters to the view:

<?php
global $user;
if ($user->uid) {
	$view = views_get_view('cv_personal_events');	
	print $view->execute_display('default',array($user->uid));   
?>
briantes’s picture

Nobody need it?

pwaterz’s picture

Anyone out there know how to handle this? :) Thanks for everyone thoughts!

PJW

briantes’s picture

Hi. I haven't found a solution. I don't know how to apply a date range arguments to a view with php.