Created On: 11/24/2004 9:28:00 AM 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 |