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 #46: Formatting a Date from an Integer

Danish409
7 - Meteor

Here is my solution:

Spoiler
Spoiler
Screen-16-08-2020_063844.png
WernerE
8 - Asteroid

Thanks

Qiu
20 - Arcturus
20 - Arcturus

This is an easy one.

Spoiler
en-46.PNG
TheOC
15 - Aurora
15 - Aurora

Can definitely see how there'd be multiple (potentially better) solutions to this than mine, I'll use this one as a revision technique down the line!

Spoiler
I extended the length of the string, changed it based on the first digit, and then converted to a date. Then it was a simple format to have the correct output. 

TheOC_0-1598374980219.png

 

 


Bulien
david14
8 - Asteroid

My solution is attached.

fimler
8 - Asteroid

Not as elegant as the provided solution but it still works...

Spoiler
fimler_0-1598408042313.png

 

p_padham
8 - Asteroid

Hello!

 

Here is my attempt:

 

Spoiler
challenge_46_completed.png
Owaisf
7 - Meteor

__________________________

Diansley
7 - Meteor

Answer

mollymargolis
8 - Asteroid

my solution