Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
t
//Rextester.Program.Main is the entry point for your code. Don't change it. //Microsoft (R) Visual C# Compiler version 2.9.0.63208 (958f2354) using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public static string formatAsCustomString(DateTime date, int number) { return number.ToString() + '-' + date.ToString().Replace("-",""); } } class Solution { public static void Main(string[] args) { TextWriter textWriter = new StreamWriter(@System.Environment.GetEnvironmentVariable("OUTPUT_PATH"), true); DateTime date; date = Convert.ToDateTime(Console.ReadLine()); int number = Convert.ToInt32(Console.ReadLine().Trim()); string result = Result.formatAsCustomString(date, number); textWriter.WriteLine(result); textWriter.Flush(); textWriter.Close(); } } }
run
|
edit
|
history
|
help
0
anyonymous type pass to method in c#
Test
Testing 003
Factory Method Design Pattern
C# get decimal part only form double extension
project euler 17, C#
EricomQ9
Remove BOLD formatting from html
checkvalidtraingle
321