NSDate 到 RFC 2822 日期格式
有没有有效的方法将 NSDate 转换为 RFC 2822 日期格式字符串? 我想使用这个字符串创建一个 NSURLRequest 并设置“If-Modified-Since”标头字段的值。
Is there any efficient way to convert an NSDate to RFC 2822 Date format string ?
I want to use this string to create an NSURLRequest and set the value of "If-Modified-Since" header field.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
尝试使用
NSDateFormatter
try to use an
NSDateFormatter
斯威夫特 3,4,5
Swift 3,4,5