Date Format

Published by sabonchi in

Create a function that converts a date formatted as MM/DD/YYYY to YYYYDDMM.

Examples

FormatDate("11/12/2019") ➞ "20191211"

FormatDate("12/31/2019") ➞ "20193112"

FormatDate("01/15/2019") ➞ "20191501"

Notes

Return value should be a string.

Watch a quick demo on how Edabit works.