SOLVED - How to deconstruct a date?

Creating desktop or client-server database solutions?

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
admin12
Posts: 412
Joined: Wed May 11, 2011 9:47 am

SOLVED - How to deconstruct a date?

Post by admin12 » Wed Jul 27, 2011 2:48 am

In the database, the three controls used to make the date of birth are separated out - they are drop down controls.

My database only has one field dedicated to the DOB, so I added them together like so:

put the text of field "MonthEntry" &space & the text of field "DayEntry" &comma & space & the text of field "YearEntry" into DOB

DOB is now one date. How do I put the three pieces of data back into the MonthEntry, DayEntry and YearEntry fields since it is separated on the form like that as a grouped set of controls?

Mike
Last edited by admin12 on Wed Jul 27, 2011 6:58 pm, edited 1 time in total.

dglass
Posts: 519
Joined: Thu Sep 24, 2009 9:10 pm
Contact:

Re: How to deconstruct a date?

Post by dglass » Wed Jul 27, 2011 4:02 am

Store your dates in the DB in SQL format (yyyy-mm-dd), and then break those out by the '-' when you read it back in for display.

Post Reply