Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Compare access db birthday date field with date

Reply
Thread Tools

Compare access db birthday date field with date

 
 
CZ
Guest
Posts: n/a
 
      09-22-2005
Hello,

I have a list of employees with their birhtdays. I would like to to
have a datagrid list employees with birthdays on the current month on a
web page.

I tried

select * from tbldate where month(bdate) = month(date())

but it does not work.

can you guys please help me?

Thanks

 
Reply With Quote
 
 
 
 
Jack Li
Guest
Posts: n/a
 
      09-23-2005
Hi CZ,

I guess it should be month(now())?

Regards,
Jack Li
MVP (ASP.NET)

"CZ" <> wrote in message
news: ps.com...
> Hello,
>
> I have a list of employees with their birhtdays. I would like to to
> have a datagrid list employees with birthdays on the current month on a
> web page.
>
> I tried
>
> select * from tbldate where month(bdate) = month(date())
>
> but it does not work.
>
> can you guys please help me?
>
> Thanks
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
javascript validation for a not required field, field is onlyrequired if another field has a value jr Javascript 3 07-08-2010 10:33 AM
1.Enter space bar for field names and save the field.The field shoud not get saved and an alert should be there as"Space bars are not allowed" Sound Javascript 2 09-28-2006 02:43 PM
get today's date and compare to txt Field peashoe@yahoo.com ASP General 8 01-24-2005 08:22 PM
how to compare current date to a future date and validate it in ASP.NET James P. ASP .Net 7 07-13-2004 10:13 PM
compare date field to current date Michael Haas ASP General 4 02-15-2004 11:30 PM



Advertisments