Posted: Mon Sep 16, 2002 8:03 pm
Restored from previous forum. Originally posted by Berikco.
Hi Fred,
PB does not seem to have Date and Time functions,
Any plans in the futer for this?
I noticed more people with almost te same wishlist viewtopic.php?t=1774">http://forums.pur ... nny.zeb.be
Hi Fred,
PB does not seem to have Date and Time functions,
Any plans in the futer for this?
Code: Select all
Date() ;today date as variable
Time() ;time now as variable
Day(z) ;day of date z
Month(z) ;month of date z
Year(z) ;year of date z
WeekDay(z) ;weekday 1=sunday, 2=monday, ..
WeekNo(z) ;weeknumber of date z (1..52)
DayNo(z) ;daynumber of date z (1..365)
Hour(z) ;hour of time z
Minute(z) ;minute of time z
Second(z) ;seconds of time z
DmyHmsToDate(Day, Month, Year, Hour, Minute, Second) ; create date variable from the parts
DmyToDate (Day, Month, Year) ; create date without time
DateDiff (part, date1, date2) ; difference in two dates, part is year, month, day, hour, minute, second