I'm dynamically creating a ui:inputDateTime component -- however it does not accept the format that I specified

            "format":"MM/dd/yyyy HH-mm-ss z",

instead it presents date in this format: "May 3rd, 2018 .. any work around for this or understanding why?

  • Are you using a tablet or phone? Web apps running on mobiles and tablets use an input field of type datetime for all browsers except Internet Explorer. The value is displayed based on the locale of the browser, for example, MMM d, yyyy and h:mm:ss a, which is returned by $Locale.dateFormat and $Locale.timeFormat. May 15 '18 at 21:25
  • This answer may have what you need if you don't need time component: salesforce.stackexchange.com/questions/163257/… May 15 '18 at 21:29
  • nope, just running on chrome/safari for desktop -- and yeah i actually need the time component too :/ May 15 '18 at 21:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.