Julian to timestamp 5 years 5 months ago #169895

  • N6REJ's Avatar Topic Author
  • N6REJ
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 23
  • Thanks: 0
I have a table that currently has the date fields all built wrong. However, it does have a julian date field which is correct so I need to take that value, convert it to gregorian date and then use that value for the "new" date/time field that I added.
Then delete the other year/day/month fields.
I'd appreciate any help you'll render

Please Log in or Create an account to join the conversation.

Julian to timestamp 5 years 5 months ago #169904

  • djanubis's Avatar
  • djanubis
  • Offline
  • Moderator
  • Moderator
  • Posts: 182
  • Karma: 5
  • Thanks: 23

This is not a BF thing, but pure SQL :)

If you havec a table with day, month, year fields (integer fields), and you want to push this in a standard date field, you can try (after a serious backup of your database, before such treatment) the following, in SQL tab from phpMyAdmin, or in MySQL console

Say your field names are myday, mymonth, myyear and mydate: with tablename mytable
UPDATE mytable SET mydate=STR_TO_DATE(CONCAT(myyear,'-',LPAD(mymonth,2,'00'),'-',LPAD(myday,2,'00')), '%Y-%m-%d')

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.042 seconds

BreezingForms Pro 1.4.7 for WordPress Released!

Available in the membership section.

September Discount!

Massive discounts on all subscriptions!

Get Your Subscription Here

Quick Links










Apprendre BreezingForms (French Community)

Apprendre et maîtriser BreezingForms par des tutoriels et exemples, le tout en français

Questions et réponses sur les forums de l'AFUJ


Special Offer

Summer Sale! All subscriptions at a special price!

Includes prio support, all of our current and future Joomla!® extensions and Joomla!® templates for the duration of your membership.

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our subscription plans.

How to receive the discount:

Send us a quick email to with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!