ASP Dates Display
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > IIS server support > IIS ASP > ASP Dates Display




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    ASP Dates Display  
Rags


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-28-04 01:55 PM

Hi

Use this query

Select * from <your table>
Where Month(TDate)=5 and Month(FDate)=5

Regards
Rags



>-----Original Message-----
>Hi All
>
>I have a tricky question wonder if anyone can help.
>
>I store dates in my table as
>
>FDate TDate NoDays
>
>
>Where Fdate is From Date
>TDate is To Date
>NoDays is number of days.
>
>We use this to record holidays for our employees.
>
>I would like to write a SQL query which will display all
the records where
>Fdate or Tdate are within the current month. Not very
good at writing SQL
>hence need some help.
>
>Some sample data can be like this
>
>Fdate            TDate        NoDays
>15/05/04       18/5/04        4
>29/04/04        2/5/04        5
>29/5/04        3/06/04        4
>
>If that was the data in the my table and running this
query I would expect
>it include all the three records when searching for month
of "May" as all
>three records have atleast one day which falls in the
month of May
>
>thanks for your help
>
>Jas
>
>
>.
>





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 08:53 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register