examples package: Date parsing
examples package includes services that demonstrate how to create
Gloop date objects from a
Number, or a
java.util.Date object. As you will see in these Gloop examples, the process is as easy as
mapping the source value to a
GloopDate object by either using a map line or a
Please see the following articles for more information:
1 2 3 4 5 6 7 8 9
examples ├── ... └── code ├── ... └── dateManipulation ├── CustomFormatToGloopDate.gloop ├── EpochSecondsToGloopDate.gloop ├── JavaDateToGloopDate.gloop └── StringToGloopDate.gloop
These services are named after the transformation they demonstrate. Open any of them and
run them to see how
GloopDate objects are created out of other object types. Line
comments are present1 to help you understand these services better.
Gloop will try its best to parse a given value using the built-in default
DateCalendarConverter. In cases that the date value can't be
converted, you can declare the format of the value to be parsed using the
property. A custom date format can be set by following the procedure below:
- Select a
In the Properties view, click the ellipsis button of the
This will open a dialog where you can enter the custom date formats (one per line). Once done, click OK.
As you enter your date formats, Martini will populate the right-hand side of the dialog with the current date /time, using the format that's being entered.
Open the Gloop service file to see comments. Make sure comments are also not hidden. ↩