Slava
Slava

Reputation: 55

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

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?

Upvotes: 2

Views: 142

Answers (1)

saqib kafeel
saqib kafeel

Reputation: 306

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 !

Upvotes: 1

Related Questions