Date |
Date |
tudsy |
Jun 26 2018, 11:07 AM
Post
#1
|
Advanced Member Group: Members Posts: 246 Joined: 30-September 14 Member No.: 21,611 |
Hi
Just one question. I am trying to put a date in a database. But I am not having much luck. I have created the date object. But what do I put in the insert query for the dt variable? Thanks. https://ecovib2d.com.au/ECOVIB2D/MYART/index.txt |
CharlesEF |
Jun 26 2018, 01:54 PM
Post
#2
|
Programming Fanatic Group: Members Posts: 1,981 Joined: 27-April 13 From: Edinburg, Texas Member No.: 19,088 |
If I understand your question correctly all you need to store is the date string, not a date object. So, if $date = "2018/06/30"; then you put $date in the query.
|
tudsy |
Jun 26 2018, 02:20 PM
Post
#3
|
Advanced Member Group: Members Posts: 246 Joined: 30-September 14 Member No.: 21,611 |
If I understand your question correctly all you need to store is the date string, not a date object. So, if $date = "2018/06/30"; then you put $date in the query. Hi Thanks for that. By putting a string constant in $date fill up that field in the database every Time? Thanks. |
Lo-Fi Version | Time is now: 18th April 2024 - 04:59 PM |