Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.ruby > #7289

Re: how do i convert this comma delimited string to date object?

From Hasan Diwan <hdiwan@gmail.com>
Newsgroups comp.lang.ruby
Subject Re: how do i convert this comma delimited string to date object?
Date 2016-09-02 18:19 +0000
Organization Aioe.org NNTP Server
Message-ID <nqcfrj$nfh$1@gioia.aioe.org> (permalink)
References <ebcafee9-f008-4196-bdac-981ba31d4229@googlegroups.com>

Show all headers | View raw


Junkone <junkone1@gmail.com> writes:

>I have a string with date and time that are comma delimited in this format. how do I convert it to date object?

DateTime.strptime('2013-10-02, 4:30am', '%Y-%m-%d, %H:%M%p')

Back to comp.lang.ruby | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

how do i convert this comma delimited string to date object? Junkone <junkone1@gmail.com> - 2016-09-02 09:48 -0700
  Re: how do i convert this comma delimited string to date object? Hasan Diwan <hdiwan@gmail.com> - 2016-09-02 18:19 +0000
  Re: how do i convert this comma delimited string to date object? jacki <collector@idealan.pl> - 2016-09-06 09:12 +0200
  Re: how do i convert this comma delimited string to date object? pratap477@gmail.com - 2016-10-21 03:08 -0700

csiph-web