String militaryTimeFormat = "HH:mm";
String input = DateTime.Now.ToString(militaryTimeFormat);
DateTime time = DateTime.ParseExact(input, militaryTimeFormat, null);
string militaryTime = "06/12/2008 20:30";
IFormatProvider culture = new System.Globalization.CultureInfo("en-US", true);
DateTime militaryDate =DateTime.Parse(militaryTime, culture, System.Globalization.DateTimeStyles.NoCurrentDateDefault);
string g=DateTime.Now.ToString("dd/MM/yyyy HH:mm");
string h = DateTime.Now.ToString("HH:mm");
ASP.NET is a development framework for building web pages and web sites with HTML, CSS, JavaScript and server scripting. ASP.NET supports three different development models: Web Pages, MVC (Model View Controller), and Web Forms.
Subscribe to:
Post Comments (Atom)
Using Authorization with Swagger in ASP.NET Core
Create Solution like below LoginModel.cs using System.ComponentModel.DataAnnotations; namespace UsingAuthorizationWithSwagger.Models { ...
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEigYvnrLEzt4ShwHspgLFcKca1ugKiAJefHhn0x-ZcdjxlEBpid_Lf_1tqK6B357aqEWc0kn_iscjmzgCyKPWoTq6u6t7AoHU93lR6TPNnUDnXe-CyxhevRWGrFu2DUInbfdWV3ocUfbMQsDTH3cAp4HGSrVikwC9OeHkIh4dMOzqOESQ4jYE-w3Av8gA/s16000/1.jpg)
-
Output: using Microsoft.VisualBasic; using System; using System.Collections; using System.Collections.Generic; using S...
-
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.D...
-
<ControlTemplate x:Key="TextBoxBaseControlTemplate" TargetType="{x:Type TextBoxBase}"> <Borde...
No comments:
Post a Comment