Search

Set Field For Current Date

Articles

Use this function to update a field value for the current date.

Syntax

Set Field For Current Date (field_name, field_value)

Parameters

Input Parameter Name Description
field_name The field to be updated
Accepted field names are: year, month, day, hour and minute
field_value Value to be updated for the respective field

Returns

Return value Description
Date Returns the date in the predefined %d-%m-%Y %H:%M format

Sample

Set Field For Current Date (month, 04)

  • Updates month in the current date to 04.
    If the current date is 11-03-2021, function returns 11-04-2021 20:11.

To view all the Date functions, click here.

Did you find what you were looking for?