Is there a function or library, which is a string ?
Returns the form of a formatted
string to convert to a
date object, but with an unchanged
string Is there any way to do this?
Actually, the job is impossible here is an example:
01/04/2012 In the US, it means January 4, 2012. In Australia, it means 1 April 2012.
Without knowing that where you are and what date formats traditionally means, accurately string like an arbitrary date is impossible for a date time value Matches what the user really means.
And even if you know about relevant local conventions, then users have a remarkable tendency to remain unaware of the ambiguity. To distinguish the possible meanings in order to deal with it, deep domain knowledge (or mind-reading skills!) May be required.
When you think about it, this is the reason why modern user interfaces usually use a date-picker widget in some form when the user has to enter the date / time Required
No comments:
Post a Comment