close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Date Order Issue and Dynamic Dates...

Thread began 12/08/2010 1:34 pm by iamdan356160 | Last modified 12/14/2010 12:37 pm by iamdan356160 | 1996 views | 9 replies

iamdan356160

Date Order Issue and Dynamic Dates...

Hi all,
I have 2 quick questions...

Number 1 - Date Order Issue...
I have a field in my database named 'User_JoinDate' and the date is being written in the following format yyyy-mm-dd. For some reason, when the dates are displayed in the chart generated by DWC, they appear in the following order...
Dec 5,2010
Dec 6,2010
Dec 7,2010
Dec 8,2010
Dec 2,2010
Dec 3,2010

Any ideas why the dates are not ordering them self correctly?

Number 2 - Adding dynamic dates to mySQL statement...
Currently my SQL statement looks like this...

WHERE User_JoinDate >= '2010-12-02' AND User_JoinDate <= '2010-12-08' AND User_AccountType = 'free'

How can I write this statement so that the dates are not hard coded? For example... the 'Date From' to be dynamically written to 7 days ago from today's date and the 'To Date' dynamically written to be today's date? Does that make sense?

Any help would be greatly appreciated! Thanks in advance!

Dan

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