close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Date type related task / extensions

Thread began 5/01/2012 8:19 pm by dvan_zelst | Last modified 5/01/2012 8:59 pm by dvan_zelst | 876 views | 2 replies |

dvan_zelst

Date type related task / extensions

Hi,

I have one general question for DataBridge and Date type related tasks.
Are all Date related tasks like Date search or Datepicker etc. compatible with mysql databases date format?
I have been reading Date type (US standard mm-dd-yyyy) but the database always uses yyyy-mm-dd format.

Does is still need handcoded date conversions or can above tasks already insert the correct format to the database, eventually display any other custum format?

Thanks.

Sign in to reply to this post

Ray BorduinWebAssist

The wizard will automatically convert the date format for you whenever your field datatype is set to be a date.

If you use the server behaviors manually, then you can convert the date format using php... so to display the date from a database use:

<?php echo(date('m-d-Y',strtotime($row_recordset['datecolumn']))); ?>

and to insert from a form field use:

<?php echo(date('Y-m-d',strtotime($_POST['FormField']))); ?>

That way you can display whatever format you want to use and it will store and retrieve the correct format from the database.

Sign in to reply to this post
Did this help? Tips are appreciated...

dvan_zelst

Thanks Ray,

I'm tring to read as much as possible regarding the new DataBridge / DataAssist.
I will purchase this new extension as well but will wait untill the minor bugs are fixed (to save installation time).
Also i can't wait to see some upcoming tutorials based on the new extension DataBridge.
I truly believe you made some great improvements and would love to see them in action!

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