Is there an equivalent to dateformat() for inline Javascript? #1397
Answered
by
phillipjohnston
phillipjohnston
asked this question in
Q&A
Replies: 4 comments 1 reply
-
When dropping into JS, you have access to all the format methods provided by Luxon. You can also use moment if you like. I think the usual method is |
Beta Was this translation helpful? Give feedback.
0 replies
-
I tried those functions earlier, and I just get errors with a dv.date(): dv.date(‘today’).format/toFormat is not a function.
So that scolding isn’t exactly helpful. I thoroughly read the docs before coming here. let’s assume I’m just not smart enough to use the docs as written.
… On Sep 3, 2022, at 04:18, AB1908 ***@***.***> wrote:
When dropping into JS, you have access to all the format methods provided by Luxon. You can also use moment if you like. I think the usual method is .toFormat or maybe just .format. Make sure to check the docs!
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.
|
Beta Was this translation helpful? Give feedback.
1 reply
-
See, not smart enough: I tried “toformat” not “toFormat.”
Cheers,
Phillip
… On Sep 3, 2022, at 07:10, Phillip Johnston ***@***.***> wrote:
I tried those functions earlier, and I just get errors with a dv.date(): dv.date(‘today’).format/toFormat is not a function.
So that scolding isn’t exactly helpful. I thoroughly read the docs before coming here. let’s assume I’m just not smart enough to use the docs as written.
>> On Sep 3, 2022, at 04:18, AB1908 ***@***.***> wrote:
>>
>
> When dropping into JS, you have access to all the format methods provided by Luxon. You can also use moment if you like. I think the usual method is .toFormat or maybe just .format. Make sure to check the docs!
>
> —
> Reply to this email directly, view it on GitHub, or unsubscribe.
> You are receiving this because you authored the thread.
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
AB1908
-
Thanks, fair enough, I’m also trying to debug on mobile during a power/internet outage. Probably why I am touchy😬.
… On Sep 3, 2022, at 08:36, AB1908 ***@***.***> wrote:
Wasn't really scolding ya, it's just painful to type stuff out on mobile haha
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is there an equivalent to dateformat() for inline Javascript? I would like to use this (or another method) to calculate the current YYYYWW number in an inline javascript query.
Beta Was this translation helpful? Give feedback.
All reactions