Question
I am considering to convert the date "2022/02/07" to "Mon 02/07/2022".
I specified [EEE MM/dd/yyyy] in the Date/Time Formatting logic, but the output result is "月 02/07/2022".
How can I output the day of the week in English?
Answer
The Date/Time Formatting logic uses java.text.SimpleDateFormat.
As described in the following page, it considers the locale to output data.
[Date/Time Formatting]
https://www.hulft.com/help/en-us/HULFTSquare/Content/Designer/Mapper/Iso8601ToCustom.htm
Java(TM) Platform, Standard Edition 8 API Specification
https://docs.oracle.com/javase/8/docs/api/java/text/SimpleDateFormat.html
-Alternative *This is just one example.
You can convert the days of the week from Japanese to English by using any substitution logic such as the Replace Each String after the Date/Time Formatting logic.
Settings example
Replace from: 月
Replace to : Mon
Matching method : Partial match
Replacing method: Partial replacement
[Replace Each String]
https://www.hulft.com/help/en-us/HULFTSquare/Content/Designer/Mapper/Convert.htm
Comments
0 comments
Article is closed for comments.