Top "Format" questions

It may refer to text formatting, content format, file format, document file format, etc.

How to convert seconds to time format?

For some reason I convert a time format like: 03:30 to seconds 3*3600 + 30*60, now. I wanna convert it back to its first (…

php time format
How to format DateTime to 24 hours time?

I need string from datetime to display time in 24 hours format. .. var curr = DateTime.Now; string s = ???; Console.WriteLine(s); .. …

c# datetime format
How can I format a list to print each element on a separate line in python?

How can I format a list to print each element on a separate line? For example I have: mylist = ['10…

python list format line
Format string to a 3 digit number

Instead of doing this, I want to make use of string.format() to accomplish the same result: if (myString.Length &…

c# string numbers format
Convert string to date then format the date

I am formatting a string to a date using the code String start_dt = '2011-01-01'; DateFormat formatter = …

java date format simpledateformat
Custom format for time command

I'd like to use the time command in a bash script to calculate the elapsed time of the script and …

bash shell time format
How to read from input until newline is found using scanf()?

I was asked to do a work in C when I'm supposed to read from input until there's a space …

c format scanf
Format code command for PHP/HTML in Visual Studio Code

Is it possible to get Visual Studio Code to format mixed HTML and PHP code on Windows Visual Studio Code …

php format visual-studio-code
java.util.Date format SSSSSS: if not microseconds what are the last 3 digits?

Just tested this code on both my Windows (8) workstation and an AIX: public static void main(String[] args) { System.out.…

java date format timestamp
Cell Style Alignment on a range

I'm having a problem fromatting cells in an excel sheet. For some reason my code seems to be changing the …

c# excel format alignment