.INTRODUCTION: 1 - What Is Fdate?
The Fdate motto is "Everything you'd ever want to do with dates in batch files."
Fdate is a utility for doing date formatting and date arithmetic in DOS batch
files. There are a number of different ways to put Fdate's output into
environment variables. Once this has been done, the environment variables
can be used and manipulated in many ways in the batch file.
Fdate is freeware, or what is technically known as "zero-cost shareware".
There is no requirement to register Fdate in any way. For more details,
see APPENDIX Use, Registration, And Distribution Of Fdate
Here are some of the things you can do with Fdate.
- accept user input from the keyboard
- retrieve today's date in a variety of formats
- place today's date into a file name
- reformat dates
- Output formats include common American and European
formats, or you can "roll your own" by manipulating
environment variables. Month and weekday names can be
produced in several languages (English, French, German,
- calculate when certain holidays occur in a given year
- do date arithmetic
- determine the date N days before/after a given date
- compare two dates to determine which is earlier
- compare two dates to determine how many days apart they are
- determine if a year is a leap year
- determine whether a year is evenly divisible by some number
- determine what day of the week a date falls on
- run certain software only on certain days of the week
- retrieve the date/time from the date/timestamp of a file
- do simple integer arithmetic (add, subtract, modulus)
- calculate the time a piece of software takes to run
- convert a calendar date to/from a "business Julian" date
- extract a substring from an environment variable
- right, left, or center justify a string