BrainDump
  Home arrow BrainDump arrow VBScript: Final Date Functions
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Silverlight  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
ASP Web Hosting  
ASP.NET Web Hosting 
Windows Web Hosting
 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
BRAINDUMP

VBScript: Final Date Functions
By: James Payne
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 1
    2008-04-01

    Table of Contents:
  • VBScript: Final Date Functions
  • Here and Now
  • Time is Always Against Us
  • Timer...It Has Its Eye On You
  • The TimeValue() Function

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    VBScript: Final Date Functions


    (Page 1 of 5 )

    In our previous article we discussed more of the Date Functions, like IsDate, Hour, Minute, Month, and so forth. In this article we will conclude our discussion of the VBScript Date Functions, and if there's time and room, we'll throw in the Format Functions just for the heck of it.

    We'll pick up where we left off, with the Now() function, which returns the current system date and time. But first, one last peek at our Date Functions table:  

     

    Function Name

    What It Does

    CDate

    Used to change the date and time expression to the variant subtype Date.

    Date

    Used to return the current date, based on your system date.

    DateAdd

    Used to return a date in which a time interval you specified has been added

    DateDiff

    Used to return the difference between two dates.

    DatePart

    Used to return a specific part of a date.

    DateSerial

    Used to return the date for a year you specify: year, month, and day.

    DateValue

    Used to return a date.

    Day

    Used to return a day of the month; returns a number between 1 and 31.

    FormatDateTime

    Used to return an expression. Formats it as a date or as a time.

    Hour

    Used to return the hour. Returns a number between 0 and 23.

    IsDate

    Used to check whether a value can be converted to a date. Returns a boolean value.

    Minute

    Used to return the minutes of an hour. Value range is between 0 and 59.

    Month

    Returns the month. Value returned is a number ranging from 1-12.

    MonthName

    Returns the name of a month you specifiy.

    Now

    Returns the date and time based on your system's date and time.

    Second

    Returns the seconds of the minute. A value between 0 and 59.

    Time

    Used to return the system time.

    Timer

    Used to return the amount of seconds since 12:00 am.

    TimeSerial

    Used to return the time for a specified hour, minute, and second.

    TimeValue

    Used to return a time.

    Weekday

    Used to return a day of the week. Value is a number between 1 and 7.

    WeekDayName

    Used to return the name of a day in the week.

    Year

    Used to return a year. Value is a number representing the year. (Duh)

    More BrainDump Articles
    More By James Payne


       · Thanks for stopping by to read another article. In this episode we discuss the last...
     

    BRAINDUMP ARTICLES

    - Firefox on Windows Mobile
    - Microsoft`s Sneaky Firefox Add-On Installati...
    - Microsoft`s Answer to Google Search - Bing
    - Doing Statistical Analysis with MS Excel
    - Extracting Google-Indexed Web Site Pages Usi...
    - Advanced String Manipulation Using MS Excel
    - Using Goal Seek and Solver in MS Excel
    - Internet Explorer 8: A Hands-on View
    - Tools for Beginning Game Developers
    - XAMPP: Tips for Running an Apache/MySQL Serv...
    - Improving Your Visual Studio Workspace
    - A Look at Microsoft`s Mobile Operating System
    - Microsoft Internet Explorer 8: Mixed Reactio...
    - Configuring WSUS 3.0 on Windows Server 2008
    - Migrating to Windows Server 2008





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
    Stay green...Green IT