What would the regex expression that would go into preg_split function to validate date in the format of
7-Mar-10 or how can I validate a date of format 7-Mar-10 in PHP
Thanks.
I want to convert an int to a string but if it is a single digit I want to add a leading 0
Is that one of the built in format options? or do I have to do it manually?
Hey guys,
I've seen URL's like this around and I'm just wondering how it is they are used.
Until now I've been using www.mysite.com/users/?id=33
How can I use the other format?
Hi,
I am trying to accomplish the task of
Making a Wed request
-getting result in JSON format
-Parsing the result
- and finally display the result in a table....
Any help regarding any of the task is welcome....
I'm trying to mash all my changes since I last pushed to the svn server into one big patch that I can email to my coworker for review. Can I do this with git format-patch ?
Hi,
I have an application build on my x64 computer. It is now build for x86 but on windows XP machines (x86) it fails with the "bad image format". On all Vista and up OS, it runs perfectly on x64 platfomrms. I tracked the problem to my icon.
I removed the icon and now it runs fine, anyone got an idea of how on earth this could relate to anything?
I have a lot lines contains XXXXXXXXX number format. I want change number XXXXXXXXX to XX.XXX.XXX.X
XXXXXXXXX = 9 digit random number
Anyone can help me? Thanks in advance
I have 2 integer fields that represent dates in the YYYYMMDD format. What is the best way to subtract 2 of these fields to get the correct # of days between them?
For instance, if I take the difference between 20100511 and 20100428 I would like the result to be 13 and not 83. I know I need to convert the integer fields into date formats but everything I have tried either throws an exception or doesn't work correctly.
What am I missing? Answers in vb.net please
Hi, I would like to ask for a recommendation on offline form format which user can bring around. Once done, they will upload the file to the server and data will be extracted from there.
We are currently looking at Word and Excel 2003 since all users have it on their machine but it seems that using interops on server is something to avoid.
Suggestions?
I am looking for documentation of the ithmb format used by Apple for photos stored on an Apple iPod. I would be happy with source code or a description. The only "documentation" I can find is pre-compiled executables that crack out the JPEGs.
Does anyone know how to do this?
Hello guys, I have datetime-row in mysql database. I have to check time between now and that date using php. If the range is bigger then 1 month - do somtething.
I tried something like this:
$dateFromMysql = strtotime($rowData);
$currentDate = date("m/d/y g:i A");
And then comparsion by hands. It's ugly.
Hey guys,
I have a load of signatures I wish to compare (all in ISF - ink serialized format).
Does anyone know how to compare these signatures?
Thanks in advance
Why does equality operator return false in the first case?
var a = new Date(2010, 10, 10);
var b = new Date(2010, 10, 10);
alert(a == b); // <- returns false
alert(a.getTime() == b.getTime()); // returns true
Why?
Hello,
I need to get yesterday's date from a Java ME midlet.
I know Java's Calendar object has an add method but Java ME's Calendar doesn't have it.
Is there an easy way to retrive yesterday's date?
Thanks.
Is there a reson why date can not append to a list?
vdate = str(dates.date)
vdats = vdate.split("")
vdats = vdats[0]
vbalance.append(vdats)
just did not work?
What am I doing wrong?
I have some text files previously formatted in vim using "gggqG". Now I need to convert them to one line per paragraph format. I saw a way(using :g command) to do that before, but I have forgot it. Anyone knows?
I want to calculate present Age from Date of Birth in my oracle function.
for that i am using (Today-Dob)/30/12.
But this is not accurate as some months will have 31 days.
I want to get the correct date with maximum precision
How ca i do that??
When an install completes successfully, the date and time and some other info needs to be written to the registry. How can a date be generated and how do you know if an install was completed successfully? (writing to the registry with wix is not a problem).
I have an application that needs to do some actions every date change say at midnight. Whenever the date changes the application should be said of the same. Any help regarding how to implement the functionality would be appreciated.
Thanks in advance.
I found this resource when looking to commonly format user's phone numbers.... http://www.eyesis.ca/projects/formatphone.html
I was wondering if someone else might have a better solution.
hi
here
string strScore="2"; or
string strScore="2.45656"
now here i am checking the condition if it is
double value = double.Parse(strScore);
strScore = value.ToString("##.##");
2.45656 like this then i am showing the output as
2.45
if the input is
string strScore="2";
then the ouput is shown as "2"
but now i need to show the output has 2.00
how can i format the code like this based on the condition
I'm using explain to test these queries. The col type is DATE
this uses index:
explain SELECT events.* FROM events WHERE events.date = '2010-06-11'
this doesnt
explain SELECT events.* FROM events WHERE events.date >= '2010-06-11'
index as follows (phpmyadmin)
Action Keyname Type Unique Packed Field Cardinality Collation Null Comment
Edit Drop PRIMARY BTREE Yes No event_id 18 A
Edit Drop date BTREE No No date 0 A
i notice cardinality is 0, though there are some rows with the same date..