03-06-2024, 12:24 PM
Or you can use PowerShell with pipecom.
The noticing will continue
|
Date functions
|
|
03-07-2024, 11:17 PM
@SMcNeill & mdijkens, Thanks for the examples. It's really amazing what you can do with Basic.
@SMcNeill, with your program I have so far tried to "extract" what I think is important to me, namely how many days have passed between two dates. I haven't gotten very far with it yet. - I'm working on it (until the Last Judgment). @mdijkens, an error is displayed in your program that I haven't been able to solve yet. Actually, I've tried everything you can possibly try. . . it doesn't want to go away.
03-07-2024, 11:29 PM
For just that, I think all you'd need is: TimeStamp, CheckDayFormat, and DaysBetween.
And the Check could be removed, as long as you're certain your dates are formatted correctly. (MM-DD-YYYY)
03-07-2024, 11:41 PM
(03-07-2024, 11:17 PM)Kernelpanic Wrote: @SMcNeill & mdijkens, Thanks for the examples. It's really amazing what you can do with Basic. I see 2 mistakes in your code: in the first line you have to call function TIM.stamps instead of TIM.stamp if you want to provide your date as a string Furthermore the date string you provide is a parameter and should be between brackets ("your date"): Code: (Select All)
And did you include the library in your code? I don't see it in the screenshotCode: (Select All)
45y and 2M lines of MBASIC>BASICA>QBASIC>QBX>QB64 experience
03-08-2024, 12:48 PM
(This post was last modified: 03-08-2024, 12:49 PM by SpriggsySpriggs.)
Here's something I wrote 4 years ago:
Date Picker: Finished (alephc.xyz) It has a difference between days calculation and a way to return the weekday for a given date.
The noticing will continue
03-08-2024, 03:20 PM
@SpriggsySpriggs, now I know where the error was, the source code posted by @mdijkens was only part of the entire program.
It works now.
03-08-2024, 04:06 PM
(03-08-2024, 03:20 PM)Kernelpanic Wrote: @SpriggsySpriggs, now I know where the error was, the source code posted by @mdijkens was only part of the entire program. Happy you got it working now. I hope you'll see how easy it is to use
45y and 2M lines of MBASIC>BASICA>QBASIC>QBX>QB64 experience
03-08-2024, 04:48 PM
Quite the competition for who gets the best dates! ;-))
724 855 599 923 575 468 400 206 147 564 878 823 652 556 bxor cross forever
03-08-2024, 05:01 PM
I think all are good, just depends on need and style
45y and 2M lines of MBASIC>BASICA>QBASIC>QBX>QB64 experience
|
|
« Next Oldest | Next Newest »
|
| Possibly Related Threads… | |||||
| Thread | Author | Replies | Views | Last Post | |
| Declaring Functions AS TYPEs | TerryRitchie | 14 | 2,836 |
08-17-2023, 12:41 AM Last Post: bplus |
|
| date type? | madscijr | 20 | 4,034 |
03-02-2023, 06:48 PM Last Post: madscijr |
|
| Curious. Do we still have a way to change the date and time? | Pete | 4 | 925 |
10-25-2022, 06:43 PM Last Post: Pete |
|
| need help converting old style def fn functions | madscijr | 11 | 2,855 |
07-27-2022, 02:07 AM Last Post: madscijr |
|
| could someone kindly bring me up to date with a couple qb64 items? | madscijr | 7 | 1,836 |
06-14-2022, 02:23 PM Last Post: madscijr |
|