close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Datepicker show if

Thread began 11/10/2012 12:03 pm by jo271221 | Last modified 11/12/2012 8:03 am by Jason Byrnes | 922 views | 1 replies |

jo271221

Datepicker show if

1. When I update the enddate it shows 2012/12/12 format and is suppose to be 2012-12-12 as eventdate is. I don't know if that is causing the end date to display when it is the same as the start date or if I have an issue with the start date. Regardless the end date should display by default matching the format of the start date.

2. When the events display on the page they should display Sat November 10, 2012 to Sat November 10, 2012
which is correct, however the end date is only suppose to display if it is NOT the same as the start and AND if it is not null or empty. I don't have the and if not null or empty coded yet on the end date but I believe I have that correct at the start date.

Attached Files
_p_updateAndDetail.zip
Sign in to reply to this post

Jason ByrnesWebAssist

1) I dont follow. Where is it showing the date in the incorrect format? on the details page? results page? please provide more details and a screen shot.


2) On the details your if statement is using 2 separate date formats:
<?php if (date('D F j, Y',strtotime($row_WADAtbl_post["eventdate"])) != date('D n/j/Y',strtotime($row_WADAbrevents['enddate'])) && $row_WADAtbl_post["eventdate"] !='' ) { ?>


you are using D F j, Y for eventdate and D n/j/Y for enddate. in reality, you should just be using the timestamp generated by the strtotime command:
<?php if ((strtotime($row_WADAtbl_post["eventdate"]) != strtotime($row_WADAbrevents['enddate'])) && $row_WADAtbl_post["eventdate"] !='' ) { ?>

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...