Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...with companys cutting back on training, lack of true support by makers of software, the forums are a great tool in your cyber-toolbox...."

Geography

Where in the world do Tek-Tips members come from?
Bersani (Programmer)
8 Jul 12 20:13
I need to a add a month to a date field. I do not know how to format the date field in order to do the calculation. I have tried DateAdd with no luck. The date field is called baseline; it is formatted as short date. I want to make a label that gives a projected date 30 days (or 1 month)into the future.
r937 (TechnicalUser)
9 Jul 12 4:44

Quote:

it is formatted as short date
sounds to me like you are using microsoft access


this is the mysql forum

r937.com | rudy.ca
Buy my new book Simply SQL from Amazon

GregTheGeek (Programmer)
3 Aug 12 15:17
If you are looking to do this in a SELECT statement, try this:

CODE

SELECT DATE_ADD(`baseline`, INTERVAL 1 MONTH) AS 'ProjectedDate'
FROM {TableName}...

Hope this helps!


GTG

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Back To Forum

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close