Datetime picker shows LT at the end of date value instead of time

Viewed 70

I use bootstrap and datetimepicker with momentjs in my frontend app. In C# code the format is defined as

'''dateTimePickerOptions.format = $"{DateFormatHelper.GetJSFormat()}LT'''

So then I open my app in the frontend , click on datetimepicker it appears and shows date and time correctly, but when I click on a date in the calendar it shows a date plus LT at the end, for example, 01/10/2021LT How to get rid of it LT at the end?

1 Answers

In your code LT is concatenate with your date statement you need to remove it

'''dateTimePickerOptions.format = $"{DateFormatHelper.GetJSFormat()}'''

confirm it's work for you or not !

Related