wrote:
wrote:
Hi Desanti,
FormatDateTime takes a formatting string, as the help information clearly shows:
So it's just a matter of specifying the right format (if you want just the year, use "yyyy"). However, there's also a built-in Function "Year" that returns just the year, which is perhaps better to use:
But if I use extract year from date time It will be static, i want it to be dynamic (current year or can select like selecting month in combo box). Can you tell me how?
Year(CurrDate())
?