VBScript Examples DatePart Function

posted by Scudyen date: Thursday, May 22, 2008 category: ASP

 

DatePart function is a very useful function to get the a part of a date. You may get year, month, day of year .. etc. of a specific date.

An Example :

Function GetYear(strDate)
   GetYear = DatePart("yyyy", strDate)
End Function

Some of settings can be used with DatePart function :

yyyy : Year
q : Quarter
m : Month
y : Day of year
d : Day
w : Weekday
ww : Week of year
h : Hour
n : Minute
s : Second

Read More

Custom Search



Gazatem Technologies Active News Manager


page counter

Listed with 411asp.net Listed with 4aspin.com