Skip to Content (Press Enter)
OutSystems.com
Personal Edition
Community
Support
Training
Training
Online Training
Developer Schools
Boot Camps
Certifications
Tech Talks
Documentation
Documentation
Overview
ODC
O11
Forums
Forge
Get Involved
Get Involved
Jobs
Ideas
Members
Mentorship
User Groups
Platform
Platform
ODC
O11
Search in OutSystems
Log in
Get Started
Back to Forums
João Quitério
149
Views
0
Comments
New feature in Extension Text to format date time expressions
Question
I've added a new action called
Format_DateTime
to
Extension Text
which formats a DateTime expression using a set of pre-defined tokens (much like the expressions of .NET String.Format or Java's SimpleDateFormat)
Available Keywords:
* [yyyy] - Represents the year as a four-digit number;
* [MM] - Represents the month as a number from 01 through 12;
* [MMM] - Represents the abbreviated name of the month;
* [MMMM] - Represents the full name of the month;
* [dd] - Represents the day of the month as a number from 01 through 31;
* [ddd] - Represents the abbreviated name of the day of the week;
* [dddd] - Represents the full name of the day of the week;
* [hh] - Represents the hour as a number from 01 through 12;
* [HH] - Represents the hour as a number from 00 through 23;
* [mm] - Represents the minute as a number from 0 through 59;
* [ss] - Represents the seconds as a number from 00 through 59;
Some examples of format expressions applied to the date time of this post:
[yyyy]-[MM]-[dd] [HH]:[mm]:[ss] = 2006-11-08 18:36:03
[dddd], [MMM]-[dd] = Wednesday, Nov-08
[ddd], [MMMM]-[dd] = Wed, November-08
Enjoy!
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
See the full guidelines
Loading...