[Solved] Formatting date

Discuss the database features
Post Reply
assa
Posts: 13
Joined: Sun Dec 17, 2017 9:46 am

[Solved] Formatting date

Post by assa »

In database, if i want to change the format of the date to another format like 'dd-mmm-yy' then how is it possible?
Last edited by assa on Wed Jan 10, 2018 3:59 pm, edited 1 time in total.
OpenOffice 4.1.4 and Operating System Windows 8.1
User avatar
LilZebra
Posts: 43
Joined: Sun Mar 06, 2016 4:27 pm
Location: Canada

Re: formatting date

Post by LilZebra »

If you already have a Form connected to the database, then you would go Form > Edit

Right click on the date field you want formatted and select the Control... menu.

From that, select the General tab, then scroll down to Date Format and select the elipses '..." button. Here you can modify the formatting of the date for the Form.

It's similar in the DDL.
LibreOffice 6.1.3.2 (Linux Fedora 29 on x86_64) with 'Notebookbar'
OpenOffice.org since 2002-12. LibreOffice user since 2013-current.
HSQLDB 2.5.0
User avatar
Villeroy
Volunteer
Posts: 31279
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: Formatting date

Post by Villeroy »

If dd-mm-yyyy is not availlable for the date control, you can replace it with a formatted control. A formatted control works like a spreadsheet cell, including localized and user-defined number formats.
You can also open reports for editing and assign number formats to single elements.
P.S. Mail merge fields linked to a date field are formattable as well.
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
assa
Posts: 13
Joined: Sun Dec 17, 2017 9:46 am

Re: Formatting date

Post by assa »

Thanks for the help! It was useful.
OpenOffice 4.1.4 and Operating System Windows 8.1
Post Reply