Date and Time Formats for Dialog Controls

Previous page  Return to Introduction  Next page

FileBoss for Windows
File Manipulation to the Max
Click for more on FileBoss  

Entering Dates & Times in Dialogs

These formats tell FileBoss how to display file times. Most notably these file times are seen in the Modified, Accessed and Created columns in the contents window of any view. The format for each of these columns can be set separately.

To set the formats use the Options | Program Options... command from the main menu (or click its command button) and select Date Formats from the list of option pages on the left side.

 

To see formats for displaying file times click here.

Quick Examples

For Tuesday, 19 March 2002 at 1:15:30 in the afternoon

(Note the the colon and slashes are not used as these cannot be part of a file name!)

02-03-19%y-%m-%d
20020319%Y%m%d
2002-03-19%Y-%m-%d
19-Mar-2002%d-%b-%Y
Tuesday, March 19, 2002%A, %B %d, %Y
Tue, 19 Mar 2002%a, %d %b %Y
Tuesday the 078 day of 2002%A the %j day of %Y
2002-078%Y-%j
01-15-30PM%I-%M-%S%p

Complete Specifications

Year

%yYear without century, as decimal number (00 99)
%YYear with century, as decimal number

Month

%bAbbreviated month name
%BFull month name
%mMonth as decimal number (01 12)

Week

%wWeekday as decimal number (0 6; Sunday is 0)
%WWeek of year as decimal number, with Monday as first day of week (00 53)
%UWeek of year as decimal number, with Sunday as first day of week (00 53)

Day

%aAbbreviated weekday name
%AFull weekday name
%dDay of month as decimal number (01 31)
%jDay of year as decimal number (001 366)

Hour

%HHour in 24-hour format (00 23)
%IHour in 12-hour format (01 12)
%pCurrent locale's A.M./P.M. indicator for 12-hour clock

Minutes

%MMinute as decimal number (00 59)

Seconds

%SSecond as decimal number (00 59)

Miscellaneous

%cDate and time representation appropriate for locale
%xDate representation for current locale
%XTime representation for current locale
%z(or %Z) Time-zone name or abbreviation; no characters if time zone is unknown
%%Percent sign

Alphabetical list:

%aAbbreviated weekday name
%AFull weekday name
%bAbbreviated month name        
%BFull month name
%cDate and time representation appropriate for locale
%dDay of month as decimal number (01 31)
%HHour in 24-hour format (00 23)
%IHour in 12-hour format (01 12)
%jDay of year as decimal number (001 366)
%mMonth as decimal number (01 12)
%MMinute as decimal number (00 59)
%pCurrent locale's A.M./P.M. indicator for 12-hour clock
%SSecond as decimal number (00 59)
%UWeek of year as decimal number, with Sunday as first day of week (00 53)
%wWeekday as decimal number (0 6; Sunday is 0)
%WWeek of year as decimal number, with Monday as first day of week (00 53)
%xDate representation for current locale
%XTime representation for current locale
%yYear without century, as decimal number (00 99)
%YYear with century, as decimal number
%z, %ZTime-zone name or abbreviation; no characters if time zone is unknown
%%Percent sign

Format Code        Meaning        

%#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).

Ref: HIDH_FILE_DATE_FMTS_DIALOGS

Have a question about FileBoss or anything else?

If this page didn't have what you are looking for or you want to know more just ask us. Please!

 

Your Email Address:

Your Question: