Click here to Skip to main content
12,400,183 members (55,232 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: ASP.NET Access
hello everyone,

i face a problem to get current date from ms access table.i use date(),now.date()

any many more funcn.but i m not getting current date ..in sql we use getdate(),but what is the syntax for ms access..


thanks
Posted 21-May-13 2:02am
ErBhati3.4K
Updated 21-May-13 2:34am
v2
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

In MSAccess you can use Now(). Date() provides the date and Time() provides the time
  Permalink  
v2
Comments
Maciej Los 21-May-13 8:12am
   
Yes!
+5
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

Now() provides date and time
Date() provides the date and
Time() provides the time
in ms access...
  Permalink  
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 3

Hi,

Check This Link


http://www.fontstuff.com/access/acctut06.htm

This may be Case sensitive problem.

Try this,

select * from tblDemo where Bdate = Date()


Thanks
Siva Rm K
  Permalink  
Comments
ErBhati 21-May-13 8:33am
   
i use the query select date()..it gives the error
rmksiva 21-May-13 23:58pm
   
Can you please show the error or show your full query ?!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web01 | 2.8.160721.1 | Last Updated 21 May 2013
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100