Normalizing any date string into a given format in Java -
I am working with the content of the website that contains several types of wire strings (like Atom / RSS feeds). I was thinking that there is a library to normalize these strings , or if a gem has been removed for this purpose.
Here's an example of what I'm trying to achieve:
2014-02-14T12: 11: 03-05: 00 2014-02-14T02 : 08: 00Z
:
// In just one instance, in all these cases, they are the same YYYY-MM-DD - HH : MM: SS
Tell me your suggestions, any formats will be appreciated :) I went for a while and found nothing!
Oh, too, even though I have tagged this Java (that's what I'm using), do not hesitate to post replies in other languages - I'm sure either , Or someone can change them on the thread.
No API has been developed in any language, which takes the string input of someone's interest and / or gives its date format string.
.
In my opinion, this should be the content / feed generator, which the receiver should know that, in a specific date_field
, type = "date"
and format = "YYYY-MM-DD - HH: MM: SS"
(as an example) it actually receivers API Or renders the browser, if necessary, then convert it to a local / regional format and then apply it.
Such format instructions are visible in XML data for mobile browsers. My observation and practice number format was on alpha-numerical combinations. Did not check on dates and I'm not sure that it is still in practice.
& lt; Input type = "text" name = "m0" maxlength = "22" format = "* n" />
We hope that anyone has applied it for the dates.
Comments
Post a Comment