Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

strFormat possibilities for format-dateTime-withFormat

Avatar

Avatar
Validate 1
Level 1
BPM_Developer
Level 1

Likes

0 likes

Total Posts

28 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
BPM_Developer
Level 1

Likes

0 likes

Total Posts

28 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
BPM_Developer
Level 1

27-05-2009

Hi, this is a silly question I am sure, but I would love to see the possible values for strFormat in the function format-dateTime-withFormat.  The format for the call in the XPath developer is format-dateTime-withFormat(strDateTime, strFormat, (language, country, variant, timezone)?)  The documentation does not list this function and I cannot find anything about strFormat.

Any ideas?

Accepted Solutions (0)

Answers (2)

Answers (2)

Avatar

Avatar
Validate 10
Level 5
DarrenBiz
Level 5

Likes

67 likes

Total Posts

205 posts

Correct Reply

37 solutions
Top badges earned
Validate 10
Validate 1
Ignite 5
Ignite 3
Ignite 1
View profile

Avatar
Validate 10
Level 5
DarrenBiz
Level 5

Likes

67 likes

Total Posts

205 posts

Correct Reply

37 solutions
Top badges earned
Validate 10
Validate 1
Ignite 5
Ignite 3
Ignite 1
View profile
DarrenBiz
Level 5

14-05-2012

This seems to be the top Google search result for format-dateTime-withFormat so I will post the necessary information here (as its either missing or curiously not searchable in the Workbench help pages).

If you want to know what all of the possible strFormat combinations are, look in the Java reference for SimpleDateFormat:

http://docs.oracle.com/javase/1.4.2/docs/api/java/text/SimpleDateFormat.html

Avatar

Avatar
Level 1
statke
Level 1

Likes

0 likes

Total Posts

13 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
statke
Level 1

Likes

0 likes

Total Posts

13 posts

Correct Reply

0 solutions
View profile
statke
Level 1

06-07-2009

In workbench help -> Creating processes -> Xpath function reference -> String functions -> Date and time parameters section describes different representations used in expressing date/time.

So, e.g. if you pass yyyy-mm-dd as strFormat, it should return date in that format.

if you pass mm/dd/yyyy, it should format input datetime in that way and return it back.