473,499 Members | 1,916 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

DATETIME field

hi,
I have a datetime field with this format 'CCYY-MM-DD
hh:mm:ss'. I'd like to display as a 'DD-MM-YYCC'.
thanx for your collaboration

Simone

Jun 27 '06 #1
7 1732

simone wrote:
hi,
I have a datetime field with this format 'CCYY-MM-DD
hh:mm:ss'. I'd like to display as a 'DD-MM-YYCC'.
thanx for your collaboration


Where do you get this datetime field from? The user? MySQL?

Jun 27 '06 #2
<comp.lang.php>
<Sjoerd>
<27 Jun 2006 07:47:09 -0700>
<11*********************@c74g2000cwc.googlegroups. com>
simone wrote:
hi,
I have a datetime field with this format 'CCYY-MM-DD
hh:mm:ss'. I'd like to display as a 'DD-MM-YYCC'.
thanx for your collaboration


Where do you get this datetime field from? The user? MySQL?


I think what they meant was they want to display it in a different way
after its been grabbed from the database .
--
www.emailuser.co.uk/?name=KRUSTOV
Jun 27 '06 #3
puzzled! why would you want to do that?
simone wrote:
hi,
I have a datetime field with this format 'CCYY-MM-DD
hh:mm:ss'. I'd like to display as a 'DD-MM-YYCC'.
thanx for your collaboration

Simone


Jun 27 '06 #4
Rik
simone wrote:
hi,
I have a datetime field with this format 'CCYY-MM-DD
hh:mm:ss'. I'd like to display as a 'DD-MM-YYCC'.
thanx for your collaboration


strftime('%d-%m-%y%C',strtotime($field));

Grtz,
--
Rik Wasmus
Jun 27 '06 #5
Mel
On 2006-06-28 01:29:36 +1000, "strawberry" <za*******@gmail.comsaid:
puzzled! why would you want to do that?
simone wrote:
>hi,
I have a datetime field with this format 'CCYY-MM-DD
hh:mm:ss'. I'd like to display as a 'DD-MM-YYCC'.
thanx for your collaboration

Simone

Becuase DD-MM-YYYY is the standard date format for most countries.

^-- that's my Best Guess(TM).

Jul 11 '06 #6
Mel wrote:
On 2006-06-28 01:29:36 +1000, "strawberry" <za*******@gmail.comsaid:
puzzled! why would you want to do that?
simone wrote:
hi,
I have a datetime field with this format 'CCYY-MM-DD
hh:mm:ss'. I'd like to display as a 'DD-MM-YYCC'.
thanx for your collaboration

Simone


Becuase DD-MM-YYYY is the standard date format for most countries.

^-- that's my Best Guess(TM).
yeah, but the op wants dd-mm-yycc

Jul 12 '06 #7
Mel
On 2006-07-12 10:28:12 +1000, "strawberry" <za*******@gmail.comsaid:
Mel wrote:
>On 2006-06-28 01:29:36 +1000, "strawberry" <za*******@gmail.comsaid:
>>puzzled! why would you want to do that?
simone wrote:
hi,
I have a datetime field with this format 'CCYY-MM-DD
hh:mm:ss'. I'd like to display as a 'DD-MM-YYCC'.
thanx for your collaboration

Simone


Becuase DD-MM-YYYY is the standard date format for most countries.

^-- that's my Best Guess(TM).

yeah, but the op wants dd-mm-yycc
Oh. Right you are. That's really odd.

Jul 12 '06 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
14202
by: andrew lowe | last post by:
Hi, Please bear with me on this problem, first I'll give you some background: I have an object that contains a DateTime field which i pass to a webservice public class Foo { public DateTime...
6
1802
by: Carl | last post by:
Hi, to be use with SQL server database 1- From window form textbox object From this assignement, txtTOTAL.Text="0.00m"; How do you convert back to decimal type ? How do you assign a...
44
16893
by: Frank Rizzo | last post by:
Any ideas?
6
16242
by: FatboyCanteen | last post by:
When I using dataset to append a null value to the datetime field. It throw a error -> can not convert db.null to system.date Can there is any standard to pass a Null value to the DateTime...
1
1968
by: Thierry | last post by:
Hi, I've got the next problem: I have a datetime field in my database (sql-server) and I want the option in it that this field can be empty. But if I leave that datetime field empty I get...
1
4743
by: RML | last post by:
Hi everyone, I am using VB.NET 2003 and an OleDBDataAdapter to update an Access table's DateTime field. The field's format is set to "General Date" (ie: 11/24/2004 8:00:00 AM). The problem is...
4
4586
by: kd | last post by:
Hi All, I have a datetime column in a table on the SQL database. I need to insert values into the datetime column from vb.net code. Here is my code: dim nameval, str, qry as string nameval =...
5
2580
by: iulian.ilea | last post by:
Is correct to have a varchar field and insert dates of type dd/mm/yyyy into it? I choose this method because I have an application that runs on more than one server. So, if I used a datetime field...
3
5304
by: john | last post by:
I am using MS Sql Express as the backend database for a Microsoft Access front end application. I am using a calendar control to store the desired date in the sql datetime field. The time...
4
10677
by: Bill Gower | last post by:
Why won't this work? What do I need to do to make it work? DateTime? DateMember; if((DateTime.Parse(oldRow.ToString) == null)) DateMember = null; else DateMember =...
0
7134
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7012
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7225
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7392
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5479
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4920
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3105
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3101
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
667
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.