Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
C# - Creating XLS filename from datetime
//Title of this code //Rextester.Program.Main is the entry point for your code. Don't change it. using System; using System.Globalization; namespace Rextester { public class Program { public static void Main(string[] args) { //DateTime now = DateTime.Now; //Console.WriteLine(string.Format("0:##.########%",now)); //Console.WriteLine(DateTime.Now.ToString("MM/dd/yyyy HH:mm")); Console.WriteLine(DateTime.Now.ToString("yyyyMMddHHmm") + ".xls"); //decimal now = 0.12456789; //Console.WriteLine(string.Format("{0}-ROC-{1:000}", "PNG", 250)); } } }
run
|
edit
|
history
|
help
0
<title>Hello world</title>
linq
Prime number
practice program
Prueba
Main3-3
147
zasasasa
practice
ObjectPool