Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
Format a date
30/03/2011
22:24
Avatar
larosal
Member
Members
Forum Posts: 21
Member Since:
13/07/2010
sp_UserOfflineSmall Offline

Hi!

How can I indicate to the end user the fomat in a legend, which you must enter the date?

I will appreciate any help,

Thanks,

31/03/2011
00:06
Avatar
OlegK
Germany
Member
Members
Forum Posts: 1255
Member Since:
10/08/2009
sp_UserOfflineSmall Offline

The end user should has input date in the native comfortable form which correspond to locale which use use. For example I use format like 31.03.2011 because I develop for Germany. It is good to use jQuery UI datepicker integrated in the jqGrid. Beacuse your question has no JavaScript code and no other information it is difficult to explain you more.

Best regards
Oleg 

01/04/2011
03:14
Avatar
larosal
Member
Members
Forum Posts: 21
Member Since:
13/07/2010
sp_UserOfflineSmall Offline

Hello!

Thanks for answer me, that I would like is: 

Date    31-03-2011    dd-mm-yyyy

and simply indicate in a message "dd-mm-yyyy".

Sorry for my English

Thanks

01/04/2011
19:23
Avatar
larosal
Member
Members
Forum Posts: 21
Member Since:
13/07/2010
sp_UserOfflineSmall Offline

Any answer?

28/07/2011
19:18
Avatar
Rukbat
USA
Member
Members
Forum Posts: 8
Member Since:
28/07/2011
sp_UserOfflineSmall Offline

If you're using PHP on the back end:

$d = date('Y-m-d', strtotime($v));

(where $v is the date the user gives you) will take any valid string representation of a date and return the format you need – yyyy-m-d, in this case.  (See the PHP date format options for others.)  Then use $d as your date.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
54 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

OlegK: 1255

markw65: 179

kobruleht: 144

phicarre: 132

YamilBracho: 124

Renso: 118

Member Stats:

Guest Posters: 447

Members: 11373

Moderators: 2

Admins: 1

Forum Stats:

Groups: 1

Forums: 8

Topics: 10592

Posts: 31289

Newest Members:

, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information