Go Back   DeveloperBarn Forums > Databases > Microsoft Access

Sponsored Links

Discuss "Date Functions Listed By Name" in the Microsoft Access forum.

Microsoft Access - Microsoft Access is a database for small to medium applications. Learn tips and tricks and best database practices here.


Closed Thread « Previous Thread | Next Thread »  
 
LinkBack Thread Tools Display Modes
  #1  
Old May 16th, 2008, 08:22 AM
AOG123's Avatar
Lightning Master

 
Join Date: Mar 2008
Location: Fortress Of Solitude
Posts: 93
Thanks: 6
Thanked 23 Times in 18 Posts
Rep Power: 1
AOG123 is on a distinguished road

Awards Showcase
Microsoft Access 
Total Awards: 1

Default Date Functions Listed By Name

Date()
Provides today's date. Date$() gives it as a string.

Day(<date>)
Provides the day of the month (1 .. 31) of <date>.

DateAdd(<interval>,<number>,<date>)
Adds an interval to <date>. The intervals can be anything from seconds to years depending on the value of the <interval> parameter.

DateDiff(<interval>, <date1>, <date2>)
Subtracts <date2> from <date1> and gives the result in the unit specified by the <interval> parameter.

DatePart(<interval>, <datetime>)
Extracts part of <datetime>, for example the minute, week or quarter.

Format(<datetime>, <format>)
Will return <datetime> as a text string in the format specified.

Hour(<time>)
Will return the hour of <time> as a number from 0 to 23.

Minute(<time>)
Will return the minute of <time> as a number from 0 to 59.

Month(<date>)
Will return the month number of <date>.

Now()
Will return the current date and time.

Second(<time>)
Will return the second of <time> as a number from 0 to 59.

Time()
Will return the current time. Time$()gives it as a string.

WeekDay(<date>)
Provides the day of the week as a number from 1 to 7.

Year(<date>)
Will return the year number of <date>.
__________________
If i helped you, make me famous by clicking the
The Following User Says Thank You to AOG123 For This Useful Post:
sbenj69 (May 27th, 2008)
Sponsored Links
Closed Thread

  DeveloperBarn Forums > Databases > Microsoft Access

Bookmarks

Thread Tools
Display Modes

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 On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
date problem todd2006 SQL Development 1 May 12th, 2008 01:51 PM
String Functions Listed By Name sbenj69 Microsoft Access 0 April 3rd, 2008 10:17 PM


All times are GMT -4. The time now is 02:59 PM.



Content Relevant URLs by vBSEO 3.2.0