navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

 

Converting Dates to QTR's

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> ASP and Database >> Converting Dates to QTR's
Page: [1]
 
cliffdeen

 

Posts: 155
Joined: 4/12/2004
From: Mckinney, TX
Status: offline

 
Converting Dates to QTR's - 9/16/2004 17:04:34   
Not sure if this the correct forum to post this problem too, but after several hours of trying to get the results from a SQL db I figured I would give it a shot.
What I am trying to do is convert dates from 12/12/2004 format to QTR format so the end result for the date example given would be 4 - 2004 - meaning the 4th QTR 2004. I have tried using the ACCESS db code of :
Expr1: "Q" & DatePart("q",[projectend],1,0) & "-" & DatePart("yyyy",[projectend])
which works great on a ACCESS DB, but the SQL does not seem to let me combine the two DatePart functions into one column. I can do two columns - 1 showing the QTR and the other showing the year, but I don't know how to combine the two columns into a third column or end result expresssion. I need the QTR-YEAR format to perform a retrieve record(s) by QTR/YR on a ASP page using the DRW with Search form criteria, but it doesn't seem to want to work with the SQL DB correctly either. Again everything works fine with ACCESS so it must be a syntax something.
Any ideas?
Page:   [1]

All Forums >> Web Development >> ASP and Database >> Converting Dates to QTR's
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts