Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- date1 = "03/03/2007"
- date2 = "07/10/2019"
- m1, d1, y1 = string.match(date1, "(%d+)/(%d+)/(%d+)")
- m2, d2, y2 = string.match(date2, "(%d+)/(%d+)/(%d+)")
- print(m1 + m2)
- print(m1 + y1)
- print(m1 + y2)
- print(m2 + d1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement