matheus__serpa

Untitled

Jul 2nd, 2020
1,296
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.15 KB | None | 0 0
  1. from datetime import datetime as dt
  2.  
  3. def parse_data(data):
  4.     if data:
  5.         return dt.strptime(data, '%Y-%m-%d')
  6.     else:
  7.         return None
Advertisement
Add Comment
Please, Sign In to add comment