Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 07-22-2005, 04:57 AM   #1
LQ Newbie
Registered: Jul 2005
Location: Bolton
Distribution: Slackware
Posts: 2

Rep: Reputation: 0
Need workaround for Date Format

I have an application that is compiled to run on Linux and windows this application has time and date information displayed in it.

Under windows the Date format is taken from the host computer such that if the regional settings are for the USA the date comes out as MMDDYY and if the regional settings are for the UK the Date shows DDMMYY.

Under linux (slackware) I always end up with date format as MMDDYY (USA) and I need UK format.

I have tried LC_ALL en_GB which I belive sets the environmental variables such that they are for the UK

The software uses the call NOW to get the system time but depends on the O/S for the formatting, I can get this changed in the futre but I need a workaround NOW

Can anyone help me out
Old 07-22-2005, 05:13 AM   #2
Bruce Hill
HCL Maintainer
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Fedora, Gentoo, Ubuntu (all servers at work are openSUSE)
Posts: 6,931

Rep: Reputation: 128Reputation: 128
Issue "man date" and that manual page explains HOW-TO.
Old 07-22-2005, 05:36 AM   #3
LQ Newbie
Registered: Jul 2005
Location: Bolton
Distribution: Slackware
Posts: 2

Original Poster
Rep: Reputation: 0
Thank you for your reply
and excuse me for being a a newbie but I can't figure it out

Does the format added to date change the system representation of date or just the way that date is displayed by the date command you just typed


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
'date' command format Neorio Linux - General 3 01-18-2011 06:18 AM
A question regarding the date format marsques Linux - General 1 03-12-2005 06:28 PM
Date format Mik LQ Suggestions & Feedback 8 12-05-2004 11:14 AM
MySQL date format mnauta Linux - General 2 05-13-2004 07:20 PM
All I want to do is change the date format... Slycordinator Linux - General 5 12-11-2003 02:27 AM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:22 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration