The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Convert Date with SQL in Table Transformer

Sophia Kroening
November 1, 2023

I am trying to convert Jira dates (Nov 1, 2023) to w-yy (44/23) from a column in a table using Table Transformer in Confluence Server. I have tried many SQL queries with no success. 

Can anyone provide a simple way to do this?  

Here is the test data I've been working with

Item Date

i1      Jun 10, 2023

i2      Aug 12, 2023

i3      Jan 29, 2024

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

2 votes
Answer accepted
Stiltsoft support
Atlassian Partner
November 2, 2023

Hi @Sophia Kroening ,

Please try the following SQL query:

SELECT *,
FORMATDATE('Date', "w/y") AS 'Converted Date'
FROM T*

Thu 7-1.png

The Date format in the Settings tab should be set as "M dd, yy".

Hope it helps your case.

Sophia Kroening
December 7, 2023

Thank you! This worked perfectly

DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events