A standard date and time format string uses a single format specifier to define the text representation of a date and time value. Any date and time format string that contains more than one character, including white space, is interpreted as a custom date and time format string; for more information, see Custom date and time format strings.

Finding out the current UTC / GMT time in Excel is possible with a little VBA magic. We’ve included a full working example. Excel has two functions to give you the current date TODAY() or current date and time NOW() but it’s the local time as set on your computer. Time.is automatically displays the time in your time zone by using your IP address to detect your location. Your IP address is 157.55.39.222. Your detected location is New York, United States. ' The current date and time: 06/10/11 15:24:16 +00:00 In parsing operations, custom date and time format strings can be used with the DateTime.ParseExact, DateTime.TryParseExact, DateTimeOffset.ParseExact, and DateTimeOffset.TryParseExact methods. These methods require that an input string conforms exactly to a particular pattern for the parse Test Result: UTC Time - Tue May 15 16:24:14 IST 2012 GMT Time - Tue May 15 10:54:14 IST 2012 share | improve this answer | follow | edited Sep 30 '13 at 6:21 Dec 27, 2011 · Notice the GMT-0600 (CST) part at the end. That means the resulting date is not GMT, it is CST. If you convert this date to GMT it will read - Mon Jan 02 2012 22:30:00 GMT but we want it to be Mon Jan 02 2012 16:30:00 GMT. There is also another incorrect way mentioned all over the Internet -

Ruby - Date & Time - Tutorialspoint

The IANA time zone identifiers for Greenwich Mean Time are GMT, Africa/Abidjan, Africa/Accra, Africa/Bamako, Africa/Banjul, Africa/Bissau, Africa/Conakry, Africa/Dakar, Africa/Freetown, Africa/Lome, Africa/Monrovia, Africa/Nouakchott, Africa/Ouagadougou, Africa/Sao_Tome, America/Danmarkshavn, Atlantic/Reykjavik and Atlantic/St_Helena. Although GMT and UTC share the same current time in practice, there is a basic difference between the two: GMT is a time zone officially used in some European and African countries. The time can be displayed using both the 24-hour format (0 - 24) or the 12-hour format (1 - 12 am/pm).

The following table describes the standard date and time format specifiers. Unless otherwise noted, a particular standard date and time format specifier produces an identical string representation regardless of whether it is used with a DateTime or a DateTimeOffset value. See the Notes section for additional information about using standard date and time format strings.

Finding out the current UTC / GMT time in Excel is possible with a little VBA magic. We’ve included a full working example. Excel has two functions to give you the current date TODAY() or current date and time NOW() but it’s the local time as set on your computer. Time.is automatically displays the time in your time zone by using your IP address to detect your location. Your IP address is 157.55.39.222. Your detected location is New York, United States. ' The current date and time: 06/10/11 15:24:16 +00:00 In parsing operations, custom date and time format strings can be used with the DateTime.ParseExact, DateTime.TryParseExact, DateTimeOffset.ParseExact, and DateTimeOffset.TryParseExact methods. These methods require that an input string conforms exactly to a particular pattern for the parse Test Result: UTC Time - Tue May 15 16:24:14 IST 2012 GMT Time - Tue May 15 10:54:14 IST 2012 share | improve this answer | follow | edited Sep 30 '13 at 6:21