Format Date
I am trying to format a date this way: March 3, 2022 - unless I missed it, I see how to format in the MM-dd-yyyy format and that works great, but I would like to spell the month out and use the comma as noted. I looked online and didn't see instructions specific to that - anyone figure this out and willing to share?
Comments
-
Reuben Schmitz:
I am trying to format a date this way: March 3, 2022 - unless I missed it, I see how to format in the MM-dd-yyyy format and that works great, but I would like to spell the month out and use the comma as noted. I looked online and didn't see instructions specific to that - anyone figure this out and willing to share?
You can get the format the date the way you described by using formatDateTime(<yourDate>, 'MMMM dd, yyyy')
Or if you want an abbreviated date you can use MMM.
1 -
I will give it another try - last time, I tried the MMM dd, yyyy format, but got an error that said it wasn't a proper formula - but perhaps there was something else not correct. Thanks for the input and I will let you know.
0 -
Hi @Reuben Schmitz - I was able to successfully replicate what Matt suggested. Make sure you are listing the ‘MMM dd, yyyy’ within single quotes in the expression.
1 -
You may have already looked at this, but you can use the “Convert Time Zone” action, even if you're not actually converting from one TimeZone to another (you set both the same). That has formatting options without needing to keep track of the exact nuances of the format strings.
2 -
Hi, you may have already figured this out, but this is the full expression I use for my date: formatDateTime(items('Apply_to_each')['date'], 'MMMM d, yyyy'). I just copy and paste the entire thing, as is into the expression.
2 -
I tried it again and your solution worked - no error this time. Thanks again for the input.
1
Categories
- All Categories
- 6 Blackbaud Community Help
- High Education Program Advisory Group (HE PAG)
- BBCRM PAG Discussions
- Luminate CRM DC Users Group
- DC Luminate CRM Users Group
- Luminate PAG
- 186 bbcon®
- 1.4K Blackbaud Altru®
- 389 Blackbaud Award Management™ and Blackbaud Stewardship Management™
- 1K Blackbaud CRM™ and Blackbaud Internet Solutions™
- 14 donorCentrics®
- 355 Blackbaud eTapestry®
- 2.4K Blackbaud Financial Edge NXT®
- 616 Blackbaud Grantmaking™
- 542 Blackbaud Education Management Solutions for Higher Education
- 33 Blackbaud Impact Edge™
- 3.1K Blackbaud Education Management Solutions for K-12 Schools
- 909 Blackbaud Luminate Online® and Blackbaud TeamRaiser®
- 207 JustGiving® from Blackbaud®
- 6.2K Blackbaud Raiser's Edge NXT®
- 3.5K SKY Developer
- 236 ResearchPoint™
- 116 Blackbaud Tuition Management™
- 375 YourCause® from Blackbaud®
- 160 Organizational Best Practices
- 232 The Tap (Just for Fun)
- 31 Blackbaud Community Challenges
- Blackbaud Consultant’s Community
- 19 PowerUp Challenges
- 3 Raiser's Edge NXT PowerUp Challenge: Gift Management
- 4 Raiser's Edge NXT PowerUp Challenge: Events
- 3 Raiser's Edge NXT PowerUp Challenge: Home Page
- 4 Raiser's Edge NXT PowerUp Challenge: Standard Reports
- 4 Raiser's Edge NXT PowerUp Challenge #1 (Query)
- 71 Blackbaud Community All-Stars Discussions
- 47 Blackbaud CRM Higher Ed Product Advisory Group (HE PAG)
- 743 Community News
- 2.8K Jobs Board
- Community Help Blogs
- 52 Blackbaud SKY® Reporting Announcements
- Blackbaud Consultant’s Community
- 19 Blackbaud CRM Product Advisory Group (BBCRM PAG)
- Blackbaud Francophone Group
- Blackbaud Community™ Discussions
- Blackbaud Francophone Group