Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
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
Please
log in
to post a comment.
Datediff in c#
Enumerable expansion
Overriding call parent & child class
x=msgbox("Your Message Here", Button+Icon, "Your Title Here")
Select, Foreach and Exceptions in C#
select z kolekcji w kolekcji (np. dokumenty i pizycje)
ExerciseI
test
DecimalToStringConversion
C# enum flag comparison with bitwise operators
Please log in to post a comment.