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 ForumsEventsEventsSQL for end date and time please?SQL for end date and time please?
Previous
 
Next
New Post
10/26/2009 10:15 AM
 

Can someone provide me with the SQL querry that this module uses to show the End Date and Time?

I am trying to create a custom view with SGSV and I am having some difficulty getting the End Date and Time to show correctly.
Thanks...

 
New Post
10/26/2009 10:24 AM
 

See here - http://msdn.microsoft.com/en-us/library/ms186819.aspx

dateadd(n, Duration, EventTimeBegin)

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
10/26/2009 11:52 AM
 

There is several ways to show the End Date and time using SGSV (SQLGridSelectedView - available at www.tressleworks.ca ).  As noted in the above post you can recalculate the end date by calculating the start date + duration using dateadd.  This will return a DateTime value from the query as would the Event End Date.

To format the datetime value, you can use the Convert function in T-SQL to convert the date to a string (varchar) or you can use the Column format option in SGSV.

The SGSV column format can be a bit tricky -- but for a date centered in the column use ,c,,,{0:<dateformat>}, where <dateformat> is a Standard .Net Date format string.  For example ,c,,,{0:dd-MMM-yy HH:mm}  will return 26-OCT-09 11:48 in centered the column. 

Please see the SGSV Usergide for complete details on column formatting.  If you have addition questions about SGSV, please post the question in the SGSV forum and I will be happy to help you.

Hope this Helps
Paul.

 

 
New Post
10/26/2009 2:15 PM
 

TY Roger that works perfect.  Saved for my future reference.
And Paul,  You have an incredible module.  I am finding new uses for it daily, I just need to work a little harder at becoming an expert. 

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsEventsEventsSQL for end date and time please?SQL for end date and time 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