You are on page 1of 3

3/26/2018 Understanding of Date formatting and Converting values in different timezones in Pega PRPC | Shailendra Sankhala | Pulse | LinkedIn

Understanding of Date formatting and


Converting values in different timezones
in Pega PRPC
Published on August 19, 2017

Shailendra Sankhala Follow


8 4 1
PEGA CPDC, CSSA, CSA and CBA

Pega is a robust BPM tool which provides many OOTB (out of the box) activities and
functionalities to create and manage business processes.

I have worked on multiple development and support project and during these times I
have come across many a times business process requires date and time to be
formatted and should be passed on to downstream application in certain format or
display on UI in a given format or store in a format in DB.

For eg, upstream application sent values of a


date in 20170111 values but while sending
values to downstream application business
wants these values to appear in this format
"January 11, 2017"

I have observed that many people uses a string operation on date property and try to
give in a format in which business is asking for or do customize coding for converting
values for a specific timezone.

This can be avoided if we simply apply logic and format defined in Pega.

This is not a new thing but developers overdo a thing which can be solved easily
and without any customization

https://www.linkedin.com/pulse/understanding-date-formatting-converting-values-pega-prpc-sankhala?trk=portfolio_article-card_title 1/3
3/26/2018 Understanding of Date formatting and Converting values in different timezones in Pega PRPC | Shailendra Sankhala | Pulse | LinkedIn

Extract of Pega Help Article -

A Java date pattern is a sequence of one or more letters that controls the presentation
of a date, or date and time. For example, the pattern MM/dd/yyyy is a request for a date
to be presented in the format 07/04/1976, for July 4, 1976.

The standard function rule FormatDateTime() in the Pega-RULES DateTime library can
convert a DateTime property value according to a Java date pattern. The Trend feature
in summary view rules accepts Java data patterns for the trend DateTimeproperty.

These letters are most often used in a date pattern. Case is significant.

y — Year as a number

M — Month, for example July, 07 or 7

w — week in year, as a number

D — Day in year, as a number

d — day in month

H — hour in day (0-23)

Time zones and locales can also be parameters to the FormatDateTime() function, so
that the pattern "yyyy.MM.dd G 'at' HH:mm:ss" with time zone 08 (Pacific) and locale
EN can produce the value 2006.07.04 at 12:08:56 PDT.

For a comprehensive description of pattern syntax, consult a Java language reference for
the SimpleDateFormat class.

______________________________________________________________________

Pega PRPC and all other details mentiined here are copyrights of Pega.
This article created just for the purpose sharing the learnig and with no
intent of violation of any intelectual property rights reserved by its owner/s

https://www.linkedin.com/pulse/understanding-date-formatting-converting-values-pega-prpc-sankhala?trk=portfolio_article-card_title 2/3
3/26/2018 Understanding of Date formatting and Converting values in different timezones in Pega PRPC | Shailendra Sankhala | Pulse | LinkedIn

Shailendra Sankhala
PEGA CPDC, CSSA, CSA and CBA Follow
5 articles

4 comments Newest

Sign in to leave your comment

Elanchezhian Duraikannu 7mo


Senior Solution Architect at HCL
Super Don.
Like Reply 1 Like

Jeff Hurst 7mo


IT Manager, Clients' Deskside Support with Techs' Training Services
Consider explicit, International date formats
#dd0MMyyyy 21/008/2017
#0MMddyyyy 008.21.2017
#yyyy0MMdd 2017-008-21… See more
Like Reply

There are 2 other comments. Show more.


Sign in Join

Top stories from Editors' Picks

Why the Cambridge Analytica case What an Amazon explorer can teach you Artificial intelligence could complet
shouldn't make you #DeleteFacebook about finding your big idea transform patient care. So why are
Jan Rezab on LinkedIn Reid Hoffman on LinkedIn nurses so skeptical about it?
Beth Kutscher on LinkedIn

Looking for more of the latest headlines on LinkedIn?

Discover more stories

Sign up Help Center About Careers Advertising Talent Solutions Sales Solutions Small Business Mobile Language SlideShare Online Learning

Search Jobs Directories Members Jobs Pulse Topics Companies Groups Universities Titles ProFinder
© 2018 User Agreement Privacy Policy Community Guidelines Cookie Policy Copyright Policy Unsubscribe

https://www.linkedin.com/pulse/understanding-date-formatting-converting-values-pega-prpc-sankhala?trk=portfolio_article-card_title 3/3

You might also like