c# - What is the correct way to store and then display DateTimes in .Net? -
i think may have been living in cave time complexities of datetime has sunk in today. i've read few articles recommend storing datetime utc in database , display them local time in view. however, hit articles said not simple , need consider "instants" , converting user inputted datetime utc hard due timezone id or using touniversaltime() not safe or let javascript post utc datetime , use js display local times if have razor view datetime model property? relying on tolocaltime() cannot considered safe apparently. i've heard of noda time jon skeet i'm hoping solves although know has commented not perfect. so in hell people using simple web applications in .net ? is there correct example provide or link posts , renders value timezone sympathetic? it appears ignorance bliss. update: example, user has datetimepicker jquery , select datetime of event. users of application global if choose 10am eastern time should appear in view 6pm uk u