show / hide menu


This function can be used to get the year in a date. For example, if you the year part of the date in any given format you can use this function.

Syntax :

GetYear(Date value)

Date Value is the given date

Examples :

textbox1.Value = GetYear( dtFromDate.Value )

This example shows how we can use a date from two datetimepicker controls and find the year part.