Products

Solutions

Resources

Partners

Community

About

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsEventsEventsA bit of SQL help needed please...A bit of SQL help needed please...
Previous
 
Next
New Post
8/12/2009 1:44 PM
 

In researching my new view for events based on selected dates by users I ran across TressleWorks.ca  SGSV module (wonderful btw) and I have a mock up created which displays a list of events from start date to end date.
I have a problem though with the End Date display.

In the SQL Table I see that it stores the EventDateEnd,  BUT the actual calendar displays a sum of EventTimeBegin and Duration.
So I wanted to know what SQL I can use to querry and display the acutual date & time an event ends.  If I querry for just EventDateEnd it is not accurate.

Example:
Events starts on August 8 at 11:00 PM and is 300(minutes?)
EventDateBegin = 8/8/2009 12:00:00 AM
EventDateEnd = 8/8/2009 12:00 AM
If I querry for just EventDateEnd it is not accurate.

Thanks.
If I can get this working I will post my entire SGSV config so that everyone can use it if they want..

 
New Post
8/12/2009 2:15 PM
 

I don't know the Events schema very intimately, but assuming that EventDateBegin is a DateTime column, and that Duration is an integer column of minutes, you should be able to use this statement in SQL to get the end date for events:

DATEADD(minute, Duration, EventDateBegin)

 Hope that helps,


Brian Dukes
Engage Software
St. Louis, MO
866-907-4002
DNN partner specializing in custom, enterprise DNN development.
 
New Post
8/12/2009 3:42 PM
 

That worked - Thank You!

Now I have to figure out how to format the dispaly for embeded HTML in the events description and I am all set.  Any ideas?

 
New Post
8/12/2009 3:56 PM
 

I found a function out on the interweb that did html decoding via SQL, you may need to use this. The code for it can be found here - http://www.thedivingclub.co.uk/Information/DNNBlog/tabid/368/articleType/ArticleView/articleId/80/Whats-New-for-the-members.aspx - scroll down the page a bit. The page will show you what I use to feed an RSS feed on my site, and a What's New report, and should give you some ideas.

Cheers
Roger


DNN MVP
Events - Get the latest version - Upgrade now!!
Feedback 6.4.2 - Now available - Give it a go!
Find us on Codeplex - DNN Events, DNN Feedback
Requirements/Bugs - Please submit them on Codeplex
 
New Post
8/12/2009 4:14 PM
 

Thanks Roger...  I am working with it now.

BTW this feature really should be in your next release... 

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsEventsEventsA bit of SQL help needed please...A bit of SQL help needed please...


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out