Yahoo Αναζήτηση Διαδυκτίου

Αποτελέσματα Αναζήτησης

  1. How can I format the output to a human-readable timestamp with date and time that can be used in a filename or extension? Prefereably something like 2011-19-9--13-45-30? Are you seriously suggesting to have the day between the year and month??

  2. #1 var currentDateTime = DateTime.Now; string format = "HH:mm_dd-MM-yyyy"; string datetime = currentDateTime.ToString(format); File.Create("Log/GameLog/"+datetime+".log"); #2 string datetime = DateTime.Now.ToString("HH:mm_dd-MM-yyyy"); File.Create("Log/GameLog/"+datetime+".log");

  3. 1 Φεβ 2024 · We use the current date and time as the name for a file on the file system. We call the string.Format method, and combine it with DateTime.Now.

  4. 2 Ιουλ 2009 · To use a PHP date format string: $time = date("g:i a") To use a .NET date format string (in C#): string time = DateTime.Now.ToString("h:mm tt")

  5. 31 Δεκ 2019 · In most cases, it’s convenient to include the current date and time in the log file. Here’s how you can do that in C# without using external libraries: string filename = String.Format( "Temperature logging {0}.csv" , DateTime.UtcNow.ToString( "yyyy-MM-dd HH-mm-ss" ));

  6. We use the current date and time as the name for a file on the file system. We call the string.Format method, and combine it with DateTime.Now, for a method that outputs the correct string based on the date and time.

  7. format. The format of the outputted date string. See the formatting options below. There are also several predefined date constants that may be used instead, so for example DATE_RSS contains the format string 'D, d M Y H:i:s'.

  1. Γίνεται επίσης αναζήτηση για