Important notice: All Credly Certification exam badges that have been unclaimed for 30 or more days will expire on August 28, 2024. To keep your badges active, log in to your Credly account and claim your badge before the deadline. (Don’t worry, this does not affect your Community badges!)

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 #258: Relatively Old

Sivashankaran
Meteoro

Here is my solution for the Challenge #258

Sivashankaran_0-1706958310362.png

 

 

  1. Below is the formula used to find DOB for whole family

if [Name] = 'Kevin' then

 

DateTimeAdd(DateTimeAdd('2015-05-05',-2,'year'),-53,'days')

elseif [Name] = 'Stéphane' then

DateTimeAdd('2015-05-05',7,'days')

elseif [Name] = 'Christine' then

DateTimeAdd(DateTimeAdd(DateTimeAdd('2015-05-05',7,'days'),-25,'year'),-3,'months')

elseif [Name] = 'Samuel' then

DateTimeAdd('2015-05-05',-4,'days')

elseif [Name] = 'Juliette' then

DateTimeAdd('2015-05-05',10,'days')

else

[Date of Birth]

Endif

  1. Convert the DOB to custom format “%A” to see its appropriate Weekday.

Solution

aiahwieder
Asteroide

Reminds me of an old brain teaser/logic puzzle from elementary school!

pclane
Meteoroide

Good challenge for learning about DateTime functions

Dibas98
Asteroide

Fun

SihanL
Meteoroide

258

holly_jones12
Meteoro
Saqueador
image.png
leefurches
Meteoro

I don't work with date/time much, so hardest one yet!

JakubJ
Asteroide

Hi, it is my solution. Regards

Amanda_Vinduska
Meteoro

Fun!