Menu

DateFormat

Help
Carlos
2012-07-12
2012-09-19
  • Carlos

    Carlos - 2012-07-12

    Hi all.

    I was wondering if it was possible to change the date format when the input
    'date' is not supported by the browser i.e Android native web browser ?

    For example, if a user enters 06/06/2012 the date is updated to 2012-06-06
    which might confuse the client.

    Thanks in advanced

     
  • Jason Akin

    Jason Akin - 2012-07-12

    Hi Carlos, thanks for using the controls. The date format is relatively new
    because HTML5-capable browsers wouldn't display the default value in
    MM/DD/YYYY format. I understand that you're asking about a case when the
    browser is NOT HTML5.

    Are you using the source code or the DLL? If you're using the source code, can
    you try something like detecting the browser in Inputs.vb around line 390. I
    would need a little time to test this out before just bundling it into the DLL
    version.

    It's not recommended to look for the browsers, but AFAIK you can only check
    for specific HTML5 capabilities client-side so that won't help. Check this
    out for a little more information.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.