Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better Documentation - For Formulas Date Time - parseDate formatDate Formats #421

Open
Techienaut opened this issue Jan 17, 2025 · 1 comment

Comments

@Techienaut
Copy link

Hi! I struggled a lot today (as a newb) trying to understand what Standard Make.md Formulas use for various functions, such as:

  • formatDate
  • parseDate

I did some digging in the codebase, and it turns out you use date-fns library.
Some more digging, and I found:

  1. formatDate uses these characters to represent parts of a datetime format: https://date-fns.org/v4.1.0/docs/format
  2. parseDate takes in either:
    a. unix timestamp in miliseconds (which is what timeStamp(inserDate)) also return.
    b. OR the ISO 8601 format: yyyy-MM-dd'T'HH:mm:ss. (source: https://date-fns.org/v4.1.0/docs/parseISO)

Well for anyone who struggles like I did--there's some documentation! I'm sure as I play around with make.md, I will find more things undocumented lol. If so, I'll make issues about it. I'm terrible at writing, so I don't want to make a commit to the documentation--until I fully understand make.md. But for now, this is my contribution.

@jp-cen
Copy link
Contributor

jp-cen commented Jan 17, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants