Hi all,
I had a list full of dates with some other date..
Now I like only the data form the current month.
date before this curront month i don't want tot display
but for me is the difficult that i can't php.. so i dont know which code i must to use, And where in CCv5...
for so far i only work with table and not with custom code because that's a stap to far for me jet.
The date note notation is also an issue
i've configured in my form a simply type text input field and there i use the notation dd-mm-yyyy
a wish for me that the date returns in full date formate.. example: "sunday 16 october 2016"
who know's the anwers for me...
Hi calculus00,
you describe how you can handle the date format whitin a date picker..
I don't use in my form no date picker, because i don't understand the working from it.
Hi dhuizinga1,
The best way to save dates in a database table to in a yyyy-mm-dd format (you can always change the display format). How are yours saved?
Bob
Hi Bon,
i uses a type=text in stead type=date. I don't know if this the right option... But dates are difficut.. We, in the netherlands uses standard the dd-mm-yyyy format. In form mostly uses mm-dd-yyyy and that's works confusing. I never found a good solution in forms to solve this.
Hi Greyhead,
thnx for this article.. it helps a lot.
date and time display works exact as I like.
thnx again..
1ste question is answered..
so I hope there's something who can help me with a the 2nd
Hi Bob,
Whoooo... That's to high and technical info for me... beep beep beep 😀
So I tried this..
This is my Conditionbox at this moment:
<?php
setlocale(LC_TIME, "nl_NL");
?>
SELECT * FROM tpqu4_chronoengine_chronoforms_datatable_Wie_heeft_er_bardienst WHERE bardienst.datum = Month(NOW());
Then nothing appens. When I put the SELECT code between <?PHP and ?> code than changes the date back into international format. I save the data in DATETIME format...
Where am i going wrong??
Sorry Bob,
I am a newbie.... i don't get it...
I dont understand this code...
When I used the most simply form in this faq than it results in a blanc page... only the table headers appear and now data.
bardienst.datum is my model.field
<?php
return array('bardienst.datum' => '23-10-2016');
?>
Hi dhuizinga1,
That date is not in the yyyy-mm-dd format. What is the format in your table?
That should return any records with that string in the datum column. If you don't get any results then perhaps there are no records.
Bob
Hi Bob
Thnx to be patient with me :-)
1st... there are records...
the format in my table is the default.. "0000-00-00 00:00:00"
when I changed array in :
<?php
return array('bardienst.datum' => '2016-10-23');
?>
then the data for this day appear... YEAHHHHH....
But... this is a hard coded date...
When I changed it in:
<?php
return array('bardienst.datum' => 'Month(NOW()');
?> then nothing appears in my list..
when I use the yyyy-mm-dd or dd-mm-yyyy formate.. what's the difference for the Month???
I don't get it.. the month is eactly the same position in the middle..
So the big question for me is how can i change my frontlist display the current month?
Dirk
Hi bob
How is it possible.. it Works.. how you do that..
it's such complex material but I want to learn more..
where do I start
Thanx a lot...
Greetz
Dirk