Skip to content

Instantly share code, notes, and snippets.

@binh12A3
Last active September 6, 2023 17:54
Show Gist options
  • Save binh12A3/9b55f79dab96342da40fa8d606adf39d to your computer and use it in GitHub Desktop.
Save binh12A3/9b55f79dab96342da40fa8d606adf39d to your computer and use it in GitHub Desktop.
using System;
namespace BinhHelper
{
public class LogHelper
{
public void myLog(string str)
{
string timestamp = DateTime.Now.ToString("dd/MM/yyyy hh:mm:ss");
Console.WriteLine("[" + timestamp + "]" + " " + str);
}
}
public class DateTimeHelper
{
public string myDateTimeString(string str)
{
return DateTime.Now.ToString(str);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment