ASP.NET MVC date format mm/dd/yyyy at 00:00 (EST) -


i trying print date time format in mvc like.

@{    var d= datetime.today; } @d 

output: 07/18/2013 2:26 pm

but need print like: 07/18/2013 @ 2:26 pm

how about

@{    string d = datetime.now.tostring("mm/dd/yyyy 'at' h:mm tt");  } @d 

Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -