How to Truncate Time From Datetime In Asp Net Mvc View



Q  :  How to Truncate Time From Datetime In Asp Net Mvc View C#

Solution

Ans :   Put In View Part @DateTime.Now.ToString("dd-MM-yyyy")

Thanks 

Comments

Popular posts from this blog

CREATING INTERNET APPLICATION PROJECT & MVC USING DATA BASE FIRST APPROACH

Real Time Example add dynamic fields using jquery looking Treeview

Nullable Type In C# with Example

How to create DATA BASE And Tables in MSSQL Server

Data Type Conversions in C# with real time example

Basic -C# Reading and writing to a console