Super Sale Limited Time 50% OFF for All-Access Plans
Save 50% Now

daterangepicker format date


value from database: {13/01/2023 7:45:48 pm}

warning : The specified value "Sa/03/2023" does not conform to the required format, "yyyy-MM-dd".


<input asp-for="@Model.DateCreated" asp-format="dd/MM/yyyy" class="form-control form-control-solid" id="kt_datepicker" />



daterangepicker:

$("#kt_datepicker").daterangepicker({
singleDatePicker: true,
timePicker: false,
showDropdowns: true,
minYear: 2023,
maxYear: parseInt(moment().format("YYYY"), 12),
locale: {
format: "dd/MM/yyyy"
}
});



textbox showing this format not value: dd/mm/yyyy

I need to format the date to dd/MM/yyyy
Please help thank you


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (3)


Playing online games has Papa's Pizzeria introduced me to so many new friends.



I think when you use the other format, MM or mm both represent numbers, so it won't make a difference. dinosaur game



Hi,

Please check how the output formatting is implemented in the official plugin docs.

Regards.


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(