Weekly Challenges

Solve the challenge, share your solution and summit the ranks of our Community!

Also available in | Français | Português | Español | 日本語
IDEAS WANTED

Want to get involved? We're always looking for ideas and content for Weekly Challenges.

SUBMIT YOUR IDEA

Challenge #367: Manipulating Dates – End of the Month

robbinrv
8 - Asteroid

Did it in a round about way before figuring out an quicker solution

Spoiler
robbinrv_0-1681750624960.png

would recommend the datetimetrim "lastofmonth" option instead :)

 

gerda
8 - Asteroid
Spoiler
gerda_0-1681751023448.png

 

Here's the solution!

TurboToad
9 - Comet

Nice new DT function to learn about.

 

Spoiler
TurboToad_0-1681750962367.png

datetimeformat(DateTimeTrim(DateTimeParse([Date],'%m/%d/%Y'),'lastofmonth'),'%m/%d/%Y')

Arjunmarwaha09
8 - Asteroid

Challenge #367 Done 

Spoiler
367.PNG

ggruccio
ACE Emeritus
ACE Emeritus

Not all the expected results are month ends --- for instance, 8-30 is not the end of August...should be 8-31...but other than that, fun challenge.

 

Spoiler
ggruccio_0-1681753461816.png

 

Asmaa-jirani
5 - Atom
Spoiler
Asmaajirani_1-1681756610746.png

 

 

CharlotteGuy
8 - Asteroid
Spoiler
CharlotteGuy_0-1681758764009.png

 

mmontgomery
11 - Bolide

Tried to do it all in one formula tool

Spoiler
mmontgomery_0-1681760268305.png

 

Clifford_Coon
11 - Bolide

My Solution

Spoiler
Already had created macro to do this:
367_Sol.jpg

367_macro.jpg

nSpire
8 - Asteroid
Spoiler
nSpire_0-1681762762804.png