From 42e6aac9355b39bb2d5f9b2e24d92811b63a6a8e Mon Sep 17 00:00:00 2001 From: FajitaOfTreason <234828294+FajitaOfTreason@users.noreply.github.com> Date: Fri, 5 Dec 2025 11:58:20 -0800 Subject: [PATCH 1/2] add info about formatting dates --- .../3.api/1.sub-actions/core/quotes/get-quote.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/streamerbot/3.api/1.sub-actions/core/quotes/get-quote.md b/streamerbot/3.api/1.sub-actions/core/quotes/get-quote.md index d6033e87..0b87a898 100755 --- a/streamerbot/3.api/1.sub-actions/core/quotes/get-quote.md +++ b/streamerbot/3.api/1.sub-actions/core/quotes/get-quote.md @@ -17,12 +17,16 @@ parameters: description: The specific quote ID to fetch, only used if `Type` is set to `Specific` variables: - name: quoteTimestamp - type: string - description: The date and time that the quote was made + type: DateTime + description: | + The date and time that the quote was made. Can be formatted with `DateTime` format strings. + ::read-more{to=/guide/variables#date-and-time} + Read more about date and time format strings + :: value: 1/29/2022 12:00:00 AM - name: quoteTime type: string - description: The date that the quote was made + description: The date that the quote was made, formatted in accordance with your computer's "Short date" format setting value: 10/17/2025 - name: quoteId type: string @@ -52,4 +56,4 @@ csharpMethods: - GetQuote --- -:read-more{to=/examples/quotes-commands} \ No newline at end of file +:read-more{to=/examples/quotes-commands} From e3229e494a6c7d1610ca30b1e5c30c3fdd39804e Mon Sep 17 00:00:00 2001 From: FajitaOfTreason <234828294+FajitaOfTreason@users.noreply.github.com> Date: Fri, 5 Dec 2025 12:02:43 -0800 Subject: [PATCH 2/2] link custom date and time format strings docs the examples are using custom strings, and since standard date formatting strings still depend on current culture, custom strings are more exportable anyway --- streamerbot/2.guide/03.variables.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/streamerbot/2.guide/03.variables.md b/streamerbot/2.guide/03.variables.md index 90dd7f81..8073b6eb 100644 --- a/streamerbot/2.guide/03.variables.md +++ b/streamerbot/2.guide/03.variables.md @@ -144,7 +144,7 @@ Read more about all supported numeric format strings ### Date and Time Similarly, `%time%`{lang=cs} can be formatted in short notation with AM/PM using the following syntax: `%time:t%`{lang=cs} -::read-more{to=https://learn.microsoft.com/en-us/dotnet/standard/base-types/standard-date-and-time-format-strings target=_blank rel=noopener} +::read-more{to=https://learn.microsoft.com/en-us/dotnet/standard/base-types/custom-date-and-time-format-strings target=_blank rel=noopener} Read more about all supported date and time format strings ::