close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Another date related issue!

Thread began 5/07/2020 4:03 am by Paul | Last modified 5/07/2020 12:43 pm by Ray Borduin | 10 views | 1 replies |

PaulBeta Tester

Another date related issue!

Trying to unpick numerous similar problems in this forum for a solution, to save asking a duplicate question.

However I tried a few options all were unsuccessful.

I have a date picker on my form which saves a selected date to my sql table where it is saved as a date format.
And I get how sql will always default the save format to yyyy-mm-dd.

My search page has a query option for users to select an expiry date, so results will only return rows where the the stored date is less than the query date. Works fine.

What changes do I need to make in my results and update pages to show the date returned in uk format?

Sign in to reply to this post

Ray BorduinWebAssist

Just use the date() function to reformat the date where it is displayed. It will look something like:

php:
<?php echo(date("d-m-Y",strtotime($RecordsetName->getColumnVal("DateColumn")))); ?>
Sign in to reply to this post
Did this help? Tips are appreciated...

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