简体   繁体   English

以字符串形式表示日期 2018-01-01T17:11:11.111+06:00 的格式

[英]Represent format of the date 2018-01-01T17:11:11.111+06:00 in string

How can I represent format of 2018-01-01T17:11:11.111+06:00 in string?如何在字符串中表示2018-01-01T17:11:11.111+06:00的格式?
I've tried yyyy-MM-dd'T'HH:mm:ss.SSS+HH:mm , but it didn't work.我试过yyyy-MM-dd'T'HH:mm:ss.SSS+HH:mm ,但没有用。
It is needed for range query in elasticsearch using elastic4s.使用elastic4s在elasticsearch中进行范围查询需要它。

Let' try:让我们试试:

YYYY-MM-dd'T'HH:mm:ss.SSSz

I suggest to you this app for check the format:我建议您使用此应用程序检查格式:

https://esddd.herokuapp.com/ https://esddd.herokuapp.com/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 时间的格式如下:“ 2018-03-15T23:47:15 + 01:00” - How to format the time as following “2018-03-15T23:47:15+01:00” 写入cassandra 0001-01-01 00:00:00.0。 变成0001-01-01 10:30:00? - Writing into cassandra 0001-01-01 00:00:00.0. changed into 0001-01-01 10:30:00? date_format 不处理带有 `00:00:00` 的时间戳 - date_format doesn't handle timestamp with `00:00:00` java.text.ParseException:无法解析的日期:“ 06-DEC-11” - java.text.ParseException: Unparseable date: “06-DEC-11” 如何将日期格式为“ 3/22/2018 12:24:29 PM”的日期时间字符串格式化为sql时间戳以插入内存数据库中的h2中? - How to format a date time string of format “3/22/2018 12:24:29 PM” into sql timestamp to insert into h2 in memory database? spark scala 如何计算自 1970-01-01 以来的天数 - spark scala how can I calculate days since 1970-01-01 json4s“无法将JString(2019-04-28T01:23:45.678Z)转换为类java.time.Instant”? - json4s “Can't convert JString(2019-04-28T01:23:45.678Z) to class java.time.Instant”? 将字符串列转换为特定格式的日期 - cast the string column to date for the particular format 将T *表示为具体类型 - Represent T* as concrete type 在Scala对象中按字符串格式按日期排序 - Sort by date in String Format in Scala Object
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM