Date Block
  • 22 Aug 2022
  • 1 Minute to read
  • Contributors
  • Dark
    Light
  • PDF

Date Block

  • Dark
    Light
  • PDF

Article summary

Date

All operations that pertain to date and time are modeled in this block. 


New Date:

Returns a current date as an object.

Block Layout

Generated Code

Date

new Date()


Date Properties:

The Date Properties are: Full Year, Month, Day, Date, Hours, Minutes, Seconds, Milliseconds, Time

Input 

Output

Block Layout

Generated Code

Select the type of date property,

 

Date input as a variable or data object.

Returns the data property as text


(new Date()).getFullYear()


Date From Text:

Input 

Output

Block Layout

Generated Code

Date Text value as a variable or text,

 

Format value as a variable or text.

Returns Date Object for the given format.

pillirFunctions.

date_new_date

('2020/01/12', 'YYYY/MM/DD')


Date To Text:

Input 

Output

Block Layout

Generated Code

Date object value as a variable or a date object,

 

Format value as a variable or text.

Returns Date as a text value for the given format.

pillirFunctions.

date_to_string

((new Date()), 'YYYY/MM/DD')

Was this article helpful?

What's Next
ESC

Eddy AI, facilitating knowledge discovery through conversational intelligence