Custom Format Dialog

Using this dialog to define your own date/time stamp format, instead of using the pre-defined format:

Note: You may interleaving format code and literals, as long as the total number of characters in the Format String is less than 100. See example below.

Note: A special string "\n" can be inserted to break a line and create multi-line stamp. See example below.

Format codes Reference (from Microsoft Help file):

%a Abbreviated weekday name
%A Full weekday name
%b Abbreviated month name
%B Full month name
%c Date and time representation appropriate for locale
%d Day of month as decimal number (01 - 31)
%H Hour in 24-hour format (00 - 23)
%I Hour in 12-hour format (01 - 12)
%j Day of year as decimal number (001 - 366)
%m Month as decimal number (01 - 12)
%M Minute as decimal number (00 - 59)
%p Current locale’s A.M./P.M. indicator for 12-hour clock
%S Second as decimal number (00 - 59)
%U Week of year as decimal number, with Sunday as first day of week (00 - 53)
%w Weekday as decimal number (0 - 6; Sunday is 0)
%W Week of year as decimal number, with Monday as first day of week (00 - 53)
%x Date representation for current locale
%X Time representation for current locale
%y Year without century, as decimal number (00 - 99)
%Y Year with century, as decimal number
%z, %Z Time-zone name or abbreviation; no characters if time zone is unknown
%% Percent sign

The # flag may prefix any formatting code. In that case, the meaning of the format code is changed as follows.

%#a, %#A, %#b, %#B, %#p, %#X, %#z, %#Z, %#% # flag is ignored.
%#c Long date and time representation, appropriate for current locale. For example: “Tuesday, March 14, 1995, 12:41:29”.
%#x Long date representation, appropriate to current locale. For example: “Tuesday, March 14, 1995”.
%#d, %#H, %#I, %#j, %#m, %#M, %#S, %#U, %#w, %#W, %#y, %#Y Remove leading zeros (if any).


Examples:

Numeric

%Y-%m-%d2003-05-22
%d-%m-%Y22-05-2003
%m-%d-%Y05-22-2003
%Y.%m.%d2003.05.22
%d.%m.%Y22.05.2003
%m.%d.%Y05.22.2003

English

%b-%#d-%YJun-2-2003
%#d-%b-%Y2-Jun-2003
%b %#d %YJun 2 2003
%#d %b %Y2 Jun 2003
%B %#d, %YJune 2, 2003
%a %b %#d, %YFri Jun 2, 2003
%A %B %#d, %YFriday June 2, 2003

Default, and all other languages

%#xFriday, June 2, 2003
%#d %B %Y2 June 2003
%#d %b %Y2 Jun 2003
%A %#d %B %YFriday 2 June 2003
%A %#d %b %YFriday 2 Jun 2003
%a %#d %B %YFri 2 June 2003
%a %#d %b %YFri 2 Jun 2003
%#H:%M:%S21:50:38
%#H:%M21:50
%#I:%M:%S%p9:50:38pm
%#I:%M%p9:50pm
%H:%M:%S09:50:38
%H:%M09:50
%I:%M:%S%p09:50:38am
%I:%M%p09:50am
%d-%b-%y02-Jun-03
%#H:%M:%S EST21:50:38 EST
%#x\n%#I:%M:%SFriday, June 2, 2003
9:50:38
Contact Us | ©2010-2019 DTS8888