问题标签 [datetime-parsing]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
php - 如何以时间格式(hh:mm:ss)对 N 个值求和?
我使用了 date_parse 函数并添加了一些时间值。
当总和超过 24 小时时,我遇到了问题。如果它是 25 小时,它只是省略 2 并且只需要 5 小时。
告诉我如何添加时间值(如 12:30:00 + 14:00:00 + 02:00:00 = 28:30:00)。
c# - C# MySqlCommand Insert 显示致命错误命令
我有一张桌子(Horario),有以下类型:
我在下面的代码中看不到任何问题,但它只是在 mysqlexception 上显示“致命错误”(在 ExecuteNonQuerry() 方法中抛出。我在文本字段(11:10)和(12:10)中收到两次 Times ,以及来自 Datepicker 的日期。
下面的代码:
python - Parsing date from string using dateutil parser
I am trying to parse date which have string format as
u'June 11, 2015 - 12:26 hrs IST'
but when I am using dateutil parser to parse I am getting error.
Here is the error traceback.
python - 从字符串中解析日期并使用 Sqlalchemy tosqlite 插入
我的问题有两个子问题(这是一个词吗?):
A. 从字符串中解析日期。
我有来自 rss 提要的日期时间,格式如下:
从上面的字符串制作日期时间的最“pythonic”方法是什么?我试图用正则表达式来做,但我有大约 20 行代码来做这件事,我希望有更简单的方法来做,最好不用正则表达式。我也不知道有什么简单的方法可以更改Sep
为09
.
B. 使用 Sqlalchemy 插入到 sqlite
我的问题是,我找不到可以看到如何将列定义为日期时间的代码示例。它应该看起来像这样吗?
然后只是将对象传递datetime
给数据库?
c# - String was not recognized as a valid DateTime server error
Below is my code
#xA;The value of SV.FieldName = '19-06-2015'
, StartDate = '2015-09-20T00:00:00Z'
, EndDate = '2015-10-21T23:59:59Z'
On my development machine, this code works perfectly whereas on my server, its giving me error String was not recognized as a valid DateTime
Both my machines have date format set as English(India), Location as India and Timezone set as UTC.
I tried adding CultureInfo.InvariantCulture
on all four Parse methods, but the error did not go.
Why am I getting this error on server only? How can it be solved?
python - Python用strptime解析日期
我有以这种格式返回日期的 url
我不知道为什么会有字符串,获取它会更简单,因为"2015-01-1208:43:02"
使用它更容易解析
但它不起作用。我试过了
但我不断收到诸如“时间数据 2015-01-12T08:43:02Z 不匹配...”之类的错误
string - 如果字符串包含“T”,则删除。在此 concat 与时间字符串之后,在自动映射器文件中形成日期
我有两个字符串。日期字符串和时间字符串,它们需要连接在一起以形成有效的日期时间。下面的代码有效,但看起来有点乱,有点像黑客,有没有更好的方法?
android - JodaTime - 如何将 ISO 8601 时间字符串解析为 DateTime?
我有以下格式的时间字符串:
当我尝试使用以下方法解析字符串时。
我总是得到以下异常。
如何解析 ISO 格式的字符串以获取有效的 DateTime 对象?
c# - 在 C# 中的日期格式之间转换时出错
我的日期字段中有以下数据GridView
:2016-01-24T00:00:00
在更新该字段之前,我想将该值存储为“dd/MM/yyyy”格式。
为此,我正在执行以下操作:
但是,在运行代码时,出现以下错误:
字符串未被识别为有效的日期时间。
处理它的正确方法是什么?