Documentation for Fdate
Dictionary Name: DD_Fdate
Version 14a -- 2000-08-28
Monday 2000/08/28 10:14pm

Return to project home page

Tips for using this hypertext dictionary

Keywords reference (KWIC)

INTRODUCTION
1 - What Is Fdate?

INTRODUCTION
2 - Author Information

INTRODUCTION
3 - What To Do If This Documentation Seems Too Overwhelming

INTRODUCTION
4 - The 3-Minute Introducton to Fdate

OVERVIEW
Examples

OVERVIEW
Functions

OVERVIEW
Parameters

PARAMETER
/C - Custom Output Date Formats

PARAMETER
/F - The Function Parm -- Fdate's Most Important Parm

PARAMETER
/I - Input Date Formats

PARAMETER
/J - Justifying Output

PARAMETER
/O - Fixed Output Date Formats

PARAMETER
/T - Time Override Parameter

FUNCTION
#Add - Add Two Numbers

FUNCTION
#Comp - Compare Numbers

FUNCTION
#Dif - Calculate The Difference Between Two Integers

FUNCTION
#Div - Divide Two Numbers

FUNCTION
#Idiv - Integer Division Of Two Numbers

FUNCTION
#Mod - Modulus, Division Remainder

FUNCTION
#Mult - Multiply Two Numbers

FUNCTION
#Random - Produce A Random Number

FUNCTION
#2Xx - Convert An Integer To Extended Hex Notation

FUNCTION
ADD a number of days to a date

FUNCTION
Comp - Compare Dates

FUNCTION
DIF - find the number of days between two dates

FUNCTION
Echo - Output A String

FUNCTION
F - Output A Formatted Date

FUNCTION
Get And Getu - Get User Input Functions

FUNCTION
Getk (Get Keypress) Function

FUNCTION
Len (Length) Function

FUNCTION
M - Month Date Arithmetic

FUNCTION
Substr (Substring) Function

FUNCTION
Tcomp - Compare Times

FUNCTION
Upper - Put A String Into Upper Case

FUNCTION
V - Date Validation

FUNCTION
W - Weekday Date Arithmetic

INPUT_FMT
- Overview Of Input Date Formats

INPUT_FMT
Date Formats For Use With Input And Output Formats

INPUT_FMT
F - File -- Get A File Date/Time Stamp

TOPIC
Fdate's Century-Assumption Algorithm

TOPIC
Fdate's Leap Year Algorithm

TOPIC
Fdate's Support For Long Filenames

TOPIC
How Fdate Thinks About Dates

TOPIC
How To Put Fdate Output Into An Environment Variable

TOPIC
Y2K - Is Fdate Y2K Compliant

WINDOWS_USE
Problem - /V Does Not Work Under NT

WINDOWS_USE
Problem - /V Does Not Work Under Win3X Or Win9X

WINDOWS_USE
Problem - Out Of Environment Space

WINDOWS_USE
Xset - A Utility For Creating Environment Variables Under NT

APPENDIX
/V When Using 4Dos, Ndos, And Umb

APPENDIX
Another Utility Named "Fdate"

APPENDIX
Contents Of The Fdate.Zip Distribution File

APPENDIX
Fdate's Error Handling

APPENDIX
Fdate's Implementation Limits

APPENDIX
Revision History

APPENDIX
Technical Support For Fdate

APPENDIX
Uploading Fdate To Electronic Bulletin Boards

APPENDIX
Use, Registration, And Distribution Of Fdate

APPENDIX
Where To Find The Most Current Version Of Fdate

EXAMPLE
01 Display Fdate output on screen

EXAMPLE
02 Redirect FDATE output to a file

EXAMPLE
03 Put FDATE output in an environment variable using a batch file

EXAMPLE
04 Put FDATE output in an environment variable using /V parm

EXAMPLE
05 Put FDATE output in an environment variable using STRINGS

EXAMPLE
06 Put FDATE output in an environment variable using GET

EXAMPLE
07 Get user input

EXAMPLE
08 Get a user menu selection

EXAMPLE
09 Change a date from one format into another

EXAMPLE
10 Find the difference in days between two dates

EXAMPLE
11 Find the elapsed days/hours/minutes between two date/times.

EXAMPLE
14 Determine how long it took a program to run

EXAMPLE
15 Find years when a given date fell on a given day of the week

EXAMPLE
16 Find calendar date corresponding to a "business Julian" date

EXAMPLE
17 Set your PC's date to a business julian date

EXAMPLE
18 Determine if parm %1 contains a valid date

EXAMPLE
19 "Roll your own" date format

EXAMPLE
20 Find the 4th Thursday in November (Thanksgiving)

EXAMPLE
22 On a date, show what anniversary it is for some event

EXAMPLE
23 Show a list of holidays in a given year

EXAMPLE
24 Show a list of Federal holidays in a given year

EXAMPLE
25 Determine if a year is valid, and evenly divisible by 4

EXAMPLE
30 Compare a file's date to today's date

EXAMPLE
31 Compare two files' date/time using COMPARE-FUNCTION ERRORLEVELS

EXAMPLE
32 Display a list of all files that were created/updated today.

EXAMPLE
41 Delete files more than X days old (use a batch-file subroutine)

EXAMPLE
42 Get date to tell PKZIP to compress files older than 30 days

EXAMPLE
43 Loop through an array of environment variables

EXAMPLE
44 Do something on the last day (or last Friday) of the month

EXAMPLE
45 Get information about the month prior to the current month

EXAMPLE
46 Show the last Monday (or any other weekday) in this month

EXAMPLE
47 Show the last Monday in the month, for a series of months

EXAMPLE
50 Represent a date in 3 bytes of "extended hex" notation

EXAMPLE
51 Represent a date in a short (4-byte) format (technique #1)

EXAMPLE
52 Represent a date in a short (4-byte) format (technique #2)

EXAMPLE
53 Convert numbers to "extended hex" (XX) format

EXAMPLE
54 Customize Fdate for a language of your choice

EXAMPLE
55 Fergian.BAT (used in the previous example)

EXAMPLE
61 DO-ONCE: Run apps when booting for the first time of the day

EXAMPLE
62 Run specific software, depending on the day of the week

EXAMPLE
63 Run a program at a specified time later in the day

EXAMPLE
66 Change a filename to contain today's date in first 3 bytes

EXAMPLE
67 Change a file's name to a name that contains today's date

EXAMPLE
68 Change a file's name to a name containing an absolute minute

EXAMPLE
71 Extract the rightmost n characters of a string

EXAMPLE
72 Left-pad a number with zeroes, or a string with spaces