Excel Military Zulu Time UTC
Date Time Conversion
A format and a formula each of which will convert a data and time in Excel into a military data/time format that includes the time zone letter indicating the UTC time zone offset.
Last updated on 2018-08-01 by David Wallis.
The date appearing an Excel cell as dd/mm/yyyy HH:MM is required in the military form ddHHMMZmmmyyyy. The key to these forms is this:
- dd = the numeric day of the month with a leading zero for the first nine days in the month
- HH = the hour of the day on a 24-hour clock, with leading zeroes for 1:00am to 9:59am
- MM = the minutes with leading zeroes for the first nine minutes of any hour
- Z = Zulu time, ie zero offset from GMT acccording to Universal Time, Coordinated (UTC)
- mmm = the first three letters of the month name, all in capitals
- yyyy = four-digit year.
Consider this input in cell A1 of the spreadsheet (on a PC with its regional options date/time set to dd/mm/yyyy format so that a date of 12 July 2018) is displayed as 12/07/2018 14:15.
Using a custom format of ddhhmm"Z"mmmyyyy will display the date/time as 121415ZJul2018, but I understand that sometimes the format requires that JUL.
I’ve been unable to create a custom format that will capitalise the Jul, so to achieve this I have used this formula in cell B1:
=CONCATENATE(TEXT(DAY(A1),"00"),TEXT(HOUR(A1),"00"), TEXT(MINUTE(A1),"00"),"Z",CHOOSE(MONTH(A1),"JAN","FEB", "MAR","APR","MAY","JUN","JUL","AUG","SEP", "OCT","NOV","DEC"),TEXT(YEAR(A1),"00"))
That formula yields the result 121415ZJUL2018 in cell B1.
Note that the formula is one long one with no spaces. So if you are copying it into Excel, make sure that no spaces appear in the formula and that the formula is not split across more than on cell
Your Support for dmw TIPS
If you’re going to make use of Tips in any of your professional or commercial work, then please consider making a payment in recognition of the time spent publishing this website.
To make a contribution by PayPal in GBP (£ sterling) —
To make a contribution by PayPal in USD ($ US) —
To say how much you want to pay and to receive
a tax invoice for a GBP (£ sterling) contribution —
Thanks, in anticipation.
DMW Consultancy Ltd does not accept any liability for loss or damage to data to which any techniques, methods or code included in this website are applied. Back up your data; test thoroughly before using on live data.