Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 20:43 10 Nov 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : DateAdd() Function added to library

Author Message
CaptainBoing

Guru

Joined: 07/09/2016
Location: United Kingdom
Posts: 2171
Posted: 05:10pm 02 Jan 2018
Copy link to clipboard 
Print this post

Inspired by and similar in concept to the VB function of the same name. This function will manipulate date+time strings to add/subtract various intervals - great for setting the invoice due date

http://fruitoftheshed.com/MMBasic.DateAdd-Function-VB-work-a-like.ashx?NoRedirect=1&NS=MMBasic

I have not written code for quarters and day number (of the year) etc as they are a bit "fringe" (?) also I made minutes and months intervals a bit more intuitive (well at least to me).

I plan to do a DateDiff work-a-like soon which will pretty much complete the date calculation suite.

enjoy
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3308
Posted: 07:51pm 02 Jan 2018
Copy link to clipboard 
Print this post

Excellent.
Geoff Graham - http://geoffg.net
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025