C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Forums » .NET » ASP.NET »

Checking dates in msaccess


Posted Date: 04 Jul 2009      Posted By: Abbas      Member Level: Gold     Points: 1   Responses: 1



HI Friends,
i am creating a web applications with msaccess as a back end. when users post any ads on my site as free his account gets expired on the date one month after the date of register. for that when user gets register i takes current date and add 30 days in it which will be expired date. Now i want to display the expired posts for that i want to compare the current date with expired date field in database.I have used text datatype for the expireddate field because i want to display the customized date (02-June-2009). how to compare the date so that i can display expired ads.

Please reply as soon as possible.
Thanks in Advance
Abbas Electricwala.





Responses

Author: Madeshwaran    05 Jul 2009Member Level: BronzeRating: 2 out of 52 out of 5     Points: 2

Hi try like this
Select * from yourtable where CDATE(yourstringDatecolumn)=#datetoCompare#



Post Reply
You must Sign In to post a response.
Next : Export data from xl to sqlserver 2000 using vb.net
Previous : Add control dynamically
Return to Discussion Forum
Post New Message
Category: ASP.NET

Related Messages



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use