Search

Get Current Year Date

Articles

Use this function to fetch the beginning or end date of the current year.

Syntax

Get Current Year Date (option)

Parameters

Input Parameter Name Description
option Allowed inputs are ‘begin’ and ‘end’

Returns

Return value Description
Date Returns the date in the predefined day-month-year format

Sample

Get Current Year Date (begin)

  • In the year of 2021, the date 01 Jan 2021 is fetched.

To view all the Date functions, click here.

Did you find what you were looking for?