C DateTime to YYYYMMDDHHMMSS format

0 votes
I'd like to convert a C# DateTime to the format "YYYYMMDDHHMMSS." But I can't seem to discover a built-in way for obtaining this format? Any thoughts?
Jun 11 in C# by pranav
• 2,320 points
13 views

1 answer to this question.

0 votes

Use this. It is case sensitive by the way.

DateTime.Now.ToString("yyyyMMddHHmmss");
answered Jun 13 by krishna
• 1,340 points

Related Questions In C#

0 votes
1 answer

What is the best C# to VB.net converter

Telerik has a solid SharpDevelop-based converter that ...READ MORE

answered May 30 in C# by rajiv
• 1,620 points
20 views
0 votes
1 answer

How to convert JSON text into objects using C#

To make a class out of a ...READ MORE

answered Jun 13 in C# by krishna
• 1,340 points
11 views
0 votes
1 answer

How to send email in ASP.NET C#

You can try this using Hotmail like ...READ MORE

answered Jun 14 in C# by krishna
• 1,340 points
11 views
0 votes
1 answer

How to find the extension of a file in C#

Go to here https://docs.microsoft.com/en-us/dotnet/api/system.io.path.getextension?redirectedfrom=MSDN&view=net-6.0#System_IO_Path_GetExtension_System_String_ string myFilePath = @"C:\MyFile.txt"; string ext ...READ MORE

answered Jun 21 in C# by jyoti
• 1,240 points
16 views
0 votes
0 answers

String was not recognized as a valid DateTime " format dd/MM/yyyy"

I want to convert my string formatted ...READ MORE

May 1 in Other DevOps Questions by Kichu
• 19,040 points
95 views
0 votes
0 answers

Converting dd/mm/yyyy formatted string to Datetime

I'm fresh to C# and DotNet. I'd ...READ MORE

Jun 11 in C# by jyoti
• 1,240 points
3 views
0 votes
3 answers

Trying to upload files using Selenium(C#)

You can try using Javascript Executor to ...READ MORE

answered Aug 23, 2019 in Selenium by Abha
• 28,100 points
4,468 views
0 votes
1 answer

Deploy my Windows 10 IOT core application locally!

Of course, you, can! That is, in ...READ MORE

answered Jul 17, 2018 in IoT (Internet of Things) by nirvana
• 3,130 points
499 views
0 votes
1 answer

How to practice a language like C#

I believe you should begin with personal ...READ MORE

answered Jun 13 in C# by krishna
• 1,340 points
10 views
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP