Forum Academy Marketplace Showcase Pricing Features

Can save date time, but not Date formatted as....?

Why can’t I save my date by the format m/d/yr?? I don’t understand why this would need more params.

Screen Shot 2020-02-16 at 1.11.35 PM

vs

Screen Shot 2020-02-16 at 1.15.21 PM

and here’s the date type info:
Screen Shot 2020-02-16 at 1.17.53 PM

I don’t think it really matters does it? Can you not just display it in the correct way when you want to retrieve it later? Or am I missing something that makes this not work for you.

I want to check if today date day is greater than the day stored. 2/17/2020 is greater than 2/16/2020.

vs

2/16/2020 12pm is greater than 2/16/2020 9am which doesn’t work for my case.

A date :formatted as… is no longer a date. In most cases, it’s a string (text). Don’t save dates that way.

For a good overview of dates - what they are, what the represent, and the differences between date construction and date formatting, see:

1 Like

Ahhhhhhhhh got it! Many thanks.

1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.