// Configure the HTTP request pipeline.
var usCultureInfo = new CultureInfo("en-US");
app.UseRequestLocalization(new RequestLocalizationOptions
{
SupportedCultures = new List<CultureInfo>(new[] { usCultureInfo }),
SupportedUICultures = new List<CultureInfo>(new[] { usCultureInfo })
});
$(".datepicker").datetimepicker({
format: 'L',
showClose: false,
toolbarPlacement: 'bottom'
});
$(".datetimepicker").datetimepicker({
format: 'L LT',
showClose: false,
sideBySide: true,
toolbarPlacement: 'bottom'
});
Current Situation
AllReady stores campaign/event/task dates as the .NET DateTimeOffset type
Potential Risks
Thank you to Jon Skeet for pointing out the following potential problems
Display Campaign / Event / Task date time values
DateTimeOffset, this means we simply display the value using.ToString(). No additional timezone adjustments are necessary.Date Time formats
From Startup.cs