# Formatting date without years

**URL:** https://community.glideapps.com/t/formatting-date-without-years/79078
**Category:** Ask for Help
**Created:** [January 9, 2025, 10:34am UTC](https://community.glideapps.com/t/formatting-date-without-years/79078 "2025-01-09T10:34:02Z")
**Posts on this page:** 14
**Page:** 1

<div class="post-metadata">

### Author: ![Korbib](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/korbib/32/71813_2.png) [@Korbib](https://community.glideapps.com/u/Korbib)
#### Post date: [January 9, 2025, 10:34am UTC](https://community.glideapps.com/t/formatting-date-without-years/79078/1 "2025-01-09T10:34:02Z")

</div>

Hi,  
I need to display in my app the birthday but without the years.  
I use the Date Format plugin but it is not in the localised format (french)

Is there a way to do it ?

Thanks

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/7/a/7a914f1304e3d36243b5eeaa87c80c12d8bdc92c.png)

---

<div class="post-metadata">

### Author: ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)
#### Post date: [January 9, 2025, 3:57pm UTC](https://community.glideapps.com/t/formatting-date-without-years/79078/2 "2025-01-09T15:57:56Z")

</div>

![CleanShot 2025-01-09 at 22.56.54@2x](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/e/3/e3e997386b09ce7b596e52ec62e6dc3ad77453cc.png)

I used JavaScript for this.

```auto
function formatDateTimeTZ(datetimeString) {
  // Step 1: Parse the datetime string into a Date object
  const date = new Date(datetimeString);
  
  // Step 2: Set the locale to French and format the date
  const options = {
    day: '2-digit',
    month: 'long',
    year: 'numeric', // Include year to ensure correct date interpretation
    timeZone: 'UTC' // If needed, adjust the timezone
  };
  
  // Step 3: Format the date
  const formattedDate = date.toLocaleDateString('fr-FR', options);
  
  // Extract only "DD MMMM" from the formatted string
  // The formatted string includes the year, so we need to remove it
  const parts = formattedDate.split(' ');
  const day = parts[0];
  const month = parts[1];
  return `${day} ${month}`;
}

return formatDateTimeTZ(p1)

```

With p1 being your “Birthday” column.

---

<div class="post-metadata">

### Author: ![Korbib](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/korbib/32/71813_2.png) [@Korbib](https://community.glideapps.com/u/Korbib)
#### Post date: [January 9, 2025, 4:17pm UTC](https://community.glideapps.com/t/formatting-date-without-years/79078/3 "2025-01-09T16:17:43Z")

</div>

Thank you but I’m on a Legacy Free 😕

---

<div class="post-metadata">

### Author: ![MaximeBaker](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/maximebaker/32/80877_2.png) [@MaximeBaker](https://community.glideapps.com/u/MaximeBaker)
#### Post date: [January 9, 2025, 4:18pm UTC](https://community.glideapps.com/t/formatting-date-without-years/79078/4 "2025-01-09T16:18:16Z")

</div>

JavaScript is available on free plan.

---

<div class="post-metadata">

### Author: ![Korbib](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/korbib/32/71813_2.png) [@Korbib](https://community.glideapps.com/u/Korbib)
#### Post date: [January 9, 2025, 4:19pm UTC](https://community.glideapps.com/t/formatting-date-without-years/79078/5 "2025-01-09T16:19:55Z")

</div>

Ho yes, I’ve just found it

Thank you 🙏

---

<div class="post-metadata">

### Author: ![MaximeBaker](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/maximebaker/32/80877_2.png) [@MaximeBaker](https://community.glideapps.com/u/MaximeBaker)
#### Post date: [January 9, 2025, 4:20pm UTC](https://community.glideapps.com/t/formatting-date-without-years/79078/6 "2025-01-09T16:20:42Z")

</div>

Please, give the Solution mark to Thin! 🙂 Not to me.

---

<div class="post-metadata">

### Author: ![Korbib](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/korbib/32/71813_2.png) [@Korbib](https://community.glideapps.com/u/Korbib)
#### Post date: [January 9, 2025, 7:40pm UTC](https://community.glideapps.com/t/formatting-date-without-years/79078/7 "2025-01-09T19:40:54Z")

</div>

I don’t understand why the dates don’t match 😩

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/f/1/f19ad14cc807f6eaaa6157724b115f1a8a343971.png)

---

<div class="post-metadata">

### Author: ![MaximeBaker](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/maximebaker/32/80877_2.png) [@MaximeBaker](https://community.glideapps.com/u/MaximeBaker)
#### Post date: [January 9, 2025, 7:46pm UTC](https://community.glideapps.com/t/formatting-date-without-years/79078/8 "2025-01-09T19:46:13Z")

</div>

It is probably because of UTC time conversion. What is your timezone?

---

<div class="post-metadata">

### Author: ![Korbib](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/korbib/32/71813_2.png) [@Korbib](https://community.glideapps.com/u/Korbib)
#### Post date: [January 9, 2025, 7:48pm UTC](https://community.glideapps.com/t/formatting-date-without-years/79078/9 "2025-01-09T19:48:36Z")

</div>

I’m in France

---

<div class="post-metadata">

### Author: ![Korbib](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/korbib/32/71813_2.png) [@Korbib](https://community.glideapps.com/u/Korbib)
#### Post date: [January 9, 2025, 8:08pm UTC](https://community.glideapps.com/t/formatting-date-without-years/79078/10 "2025-01-09T20:08:38Z")

</div>

I’ve change UTC to CET and it seems working

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/5/6/56712ca8717d410bfac78822f9a8d0a278d0fd70.png)

---

<div class="post-metadata">

### Author: ![MaximeBaker](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/maximebaker/32/80877_2.png) [@MaximeBaker](https://community.glideapps.com/u/MaximeBaker)
#### Post date: [January 9, 2025, 8:15pm UTC](https://community.glideapps.com/t/formatting-date-without-years/79078/11 "2025-01-09T20:15:05Z")

</div>

There we go 😃 All good then?

---

<div class="post-metadata">

### Author: ![Korbib](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/korbib/32/71813_2.png) [@Korbib](https://community.glideapps.com/u/Korbib)
#### Post date: [January 9, 2025, 8:16pm UTC](https://community.glideapps.com/t/formatting-date-without-years/79078/12 "2025-01-09T20:16:06Z")

</div>

We will see tomorrow 😅

---

<div class="post-metadata">

### Author: ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)
#### Post date: [January 9, 2025, 11:50pm UTC](https://community.glideapps.com/t/formatting-date-without-years/79078/13 "2025-01-09T23:50:20Z")

</div>

Good to see 😉

---

<div class="post-metadata">

### Author: ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/system/32/53398_2.png) [@system](https://community.glideapps.com/u/system)
#### Post date: [January 16, 2025, 11:50pm UTC](https://community.glideapps.com/t/formatting-date-without-years/79078/14 "2025-01-16T23:50:26Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
