Get day of the week

Logic name
Get day of the week
Function
This logic gets the day of the week from the input date and time.
Data type
Location |
Type |
---|---|
First input handler |
Date |
Logic output |
Numeric |
Property
Category |
Property |
Description |
---|---|---|
Comment |
Comment |
It does not affect the conversion processing. |
Function details
The compatibility of the output numeric value and the day of the week is as follows:
Numeric |
0 |
1 |
2 |
3 |
4 |
5 |
6 |
---|---|---|---|---|---|---|---|
Day of the week |
Sunday |
Monday |
Tuesday |
Wednesday |
Thursday |
Friday |
Saturday |
Example of logic use
Mapping definition

Logic settings and processing result
This logic outputs the day of the week of the date and time of the input data as a numerical value.
For the date type data to specify for the input data, specify a value that is output from one of the following logics:
-
Current date/time (UTC)
-
Current date/time (OS time zone)
-
Date/Time formatting(Standard format)
-
Date/Time formatting(Custom)
Property settings
Property |
Setting Value |
---|---|
None |
|
Input data
Date type data that represents the following dates and times
1982-09-01T07:08:09.0100000+09:00 |
1986-10-17T12:13:14.0152435+09:00 |
2021-03-11T03:04:05.7427569+09:00 |
Output data
3 |
5 |
4 |