DEV Community

Samandar Ravshanov
Samandar Ravshanov

Posted on

📦 Formats a string based on a pattern.

from functorflow import f

print(f('format-str', 'YYYY-MM-DD', '20190508'))
# '2019-05-08'


print(f('format-str', '2019-05-08', '20151217'))
# '2015-12-17'
Enter fullscreen mode Exit fullscreen mode

Top comments (0)