Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
假设我有一个字符串“2011-08-21 21:48:45 +1200”,还有一个格式相同的字符串, 我想比较这两个字符串来找出哪个是早期的还是后来的, 有吗将字符串转换为时间格式而不是按字符比较它们的简单方法?谢谢
使用getdate或strptime()。