Skip to content

New plugin system for date formatting issue #2526

Closed Locked Answered by Eonasdan
scoldwell asked this question in Q&A
Discussion options

You must be logged in to vote

You can still do the same thing per picker if you want

const td = new tempusDominus.TempusDominus(
  document.getElementById('datetimepicker1'),
  {
    //put your config here
  }
);

td.dates.formatInput = function(date) { {return moment(date).format('MM/DD/YYYY') } }

Replies: 7 comments 7 replies

Comment options

You must be logged in to vote
5 replies
@scidec
Comment options

@scidec
Comment options

@Eonasdan
Comment options

@scidec
Comment options

@jcompagner
Comment options

Answer selected by scoldwell
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@rhousham
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Eonasdan
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
6 participants
Converted from issue

This discussion was converted from issue #2525 on March 24, 2022 19:23.