What is the Date Time format to display AM or PM?

Hi,

Need to display yyyy-MM-dd HH:ss AM or PM

What is the dateformat can anyone pls let me know.

THanks,
David

Search the web for “java SimpleDateFormat” The date services accept the same specifiers.

Hi,

For displaying the date format in: yyyy-MM-dd HH:ss AM or PM,
Just goto the developer, and on right side, click on “Content Type”, then modify the using “string_customised”(if data-type taken as string), and copy the following in “pattern” field as it is:
//--------------------------------------------------//
^(\d{4}?-\d{2}?-\d{2}?T\d{2}?:\d{2}?:\d{2}?)
//--------------------------------------------------//

It will give the date in format as: 2010-20-10T24:59:59
Modify it according to your business logic.

Thanks,
Abhishek.

Date/time format where? Are we talking about executing one of the WmPublic/pub.date services and getting the date in a certain format? If so, the Built-In Services Reference guide has a whole section that describes this. Search for “Pattern String Symbols”.

  • Percio

USe format … HH:mm:sss a “a” is for AM-PM

use below format … to display AM or PM …

yyyy-MM-dd HH:ss a

Thanks all for your inputs. The “a” worked as AM or PM.

Thanks Again.