close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Date Format (ii)

Thread began 3/26/2013 11:02 am by salaroche | Last modified 3/27/2013 10:51 am by Jason Byrnes | 484 views | 3 replies |

salaroche

Date Format (ii)

Hi:

The following code transforms the US date format mm-dd-yyyy to the DB format with no problem:

<?php require_once('Connections/dennfree.php'); ?>
<?php
if($_SERVER["REQUEST_METHOD"] == "POST") {
$_POST['S_date'] = "".((isset($_POST["S_date"]))?date("Y-m-d", strtotime(str_replace("-", "/", $_POST["S_date"]))):"") ."";
}
?>

However. when using that very same code for doing a date-range search, it just doesn't work. In contrast, when entering the date in the European format dd-mm-yyyy the date-range search works well.

Any suggestions on how to solve this?

Just in case, attached please find the date-range search page in question with the dd.mm.yyyy format coded.

Thank you for your attention.

Sign in to reply to this post

Jason ByrnesWebAssist

you have put that code on the search page, it needs to go on the results page.

if you continuer to have a problem, send a copy of both pages and a link where i can see the problem.

Sign in to reply to this post

salaroche

Jason:

Attched please find the search and the results pages in question. If you needed to visit the Website to check out the problem live, please open a ticket where I can post the logging info.

Thank you for your attention

Sign in to reply to this post

Jason ByrnesWebAssist

I have created a support ticket so we can look into this issue further.

To view and edit your support ticket, please log into your support history:
supporthistory.php

If anyone else is experiencing this same issue, please append to this thread.

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...