April 2nd is a sharp April 1st.
Date(‘04-01-2023’) + days(1); is what I’d have to write. Your method is much nicer and cleaner
I mean, it kinda depends on the language.
For SQL, I’d write something like:
SELECT CAST(DATEADD(DAY,1,'2023-04-01') AS DATE) AS BassBuzzBirthday
But for C# I’d write something more like:
using System;
public class Program
{
public static void Main()
{
DateTime BassBuzzBirthday = new DateTime();
BassBuzzBirthday = Convert.ToDateTime("2023-04-01").AddDays(1);
Console.WriteLine(BassBuzzBirthday.ToString("yyyy-MM-dd"));
}
}
Both would output 2023-04-02.
HAH! So it’d be 2023-04-01#
Well, now I am certain that the new edition of the Encyclopedia Britannica will feature this thread under the entry “Geeking out”
I mean… “timsgeekery”.
Hidden in plain sight
Nomen est omen
Happy birthday, Bassbot! And happy non-birthday to everyone else who’s birthday it isn’t. If you’re a horse, happy birthay
for a 3 yr old, he shreds…
I appreciate the support that @JoshFossgreen and all of you, too, sustain for newbies like me without a clue. BB exemplifies the ideal of the (early?) Net: to bring us together and share our common passion(s). This one is G-rated, for the most part, and family friendly, too…