close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

How do I get the value for the date field

Thread began 10/09/2009 12:19 pm by Roxana | Last modified 10/09/2009 6:41 pm by Roxana | 2463 views | 6 replies |

Roxana

How do I get the value for the date field

Hi,

I am using the BSM tables orders and orderdetails to collect the order information. One of the fields is 'date'.

How do I get the confirm page to enter the date of the order into the date field?

Sign in to reply to this post

Jason ByrnesWebAssist

In the store order summary select the date field and add the following code for the value:
<?php echo(date("d/m/Y")); ?>

Sign in to reply to this post

Roxana

Hi Jason,

I entered the code. Now the date field shows this: 0000-00-00 00:00:00

Is this a server problem? It happens both on the local and the remote server.

Sign in to reply to this post

Jason ByrnesWebAssist

Ok, trey this instead without the formating:

<?php echo(date()); ?>

Sign in to reply to this post

Roxana

Hi Jason,

The result is still the same: 0000-00-00 00:00:00

I also noticed, that the type of the order date in the order summery behavior is set to text. I tried setting it to date, but it just won't stick. I save it, and when I open it again, it is back to text.

Sign in to reply to this post

Jason ByrnesWebAssist

One last try:
<?php echo(date("Y-m-d h:m:s")); ?>

Sign in to reply to this post

Roxana

Jason, you are a genius. Thank you, it works. It even puts in the German time. Nice.

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