Advertisement
karobloxYT

Untitled

Oct 11th, 2019
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. date1 = "03/03/2007"
  2. date2 = "07/10/2019"
  3. m1, d1, y1 = string.match(date1, "(%d+)/(%d+)/(%d+)")
  4. m2, d2, y2 = string.match(date2, "(%d+)/(%d+)/(%d+)")
  5. print(m1 + m2)
  6. print(m1 + y1)
  7. print(m1 + y2)
  8. print(m2 + d1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement