vxml


date value in database


I have a php database that accepts user input. It accepts the built in grammar type which is date, is stores to the database the date in this format 20101030. I want to be able to check against the database for use within a grammar but it doesn't recognize this value again as a date. Is there anyway i can do this? thanks
Try this
$datear=array();
$temp=strtotime($row['Your_date_column']);
$datear=getdate($temp);
echo substr($datear["month"],0,3).'-'.$datear["mday"].'-'.$datear["year"];
($row['Your_date_column']) this will give the unix timestamp what you wrote above like 201010... getdate() function will convert to date array which will store relevant information like
[seconds] - seconds
[minutes] - minutes
[hours] - hours
[mday] - day of the month
[wday] - day of the week
[year] - year
[yday] - day of the year
[weekday] - name of the weekday
[month] - name of the month
once you get this info try for format the date as you need in you database..

Related Links

TTS concatenation based on user input
Optional param in VXML subdialog
vXML if statement (DTFM only)
VXML <say-as> within <filled>
vXML number readback error
Writing GRXML code
Meaning of repeat-prob in Speech Recognition Grammars
VoiceXML script runs fine on gist.github.com but won't run on my server
How to dynamically set bargein property in VXML?
Keeping call open
using vxml transfer between 2 extensions
date value in database
Accessing form elements filling fields?
Take any user input confirm it
VoiceXML without Telephone
vxml grammar srcexpr attribute not evaluating every time

Categories

HOME
phantom-dsl
search
simulink
hugo
ado.net
code-coverage
trac
enthought
gson
project-intu
intercom
shared-libraries
asp.net-mvc-viewmodel
windows-xp
joptionpane
mongoid6
jquery-callback
perlbrew
fat
twiml
anki
postback
record
autolisp
laravel-eloquent
simplecv
jett
salesforce-communities
jpad
jvmti
snapchat
flask-restful
openresty
openrasta
wcftestclient
user-defined-fields
posixct
context-switch
opengl-4
type-theory
flyout
trigger.io
cmp
baidu
vibrate
rsa-archer-grc
donations
node-request
docpad
mapinfo
synonym
html-to-pdf
mobiledoc-kit
jnlua
maybe
java-money
zen-cart
extjs-grid
jsvc
canvg
osc
fits
rrule
dot.js
dbaccess
metatrader5
cuba
ecslidingviewcontroller
merb
route-provider
actiondispatch
onload-event
apache-abdera
web-notifications
hibernateexception
luabind
user-tracking
android-holo-everywhere
xcelsius
update-statement
umra
w3c-geolocation
jqueryform
tabpanel
entitykey
appliance

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App