Search

Get Current Week Date

Articles

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

Syntax

Get Current Week 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 Week Date (begin)

  • The first date of the week, 08 Mar 2021 is fetched.

Monday is considered as the start and Sunday to be the end of the week.

To view all the Date functions, click here.

Did you find what you were looking for?