Go Back   Webmaster Malaysia Forum » Website Design & Development » Website Programming

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-04-2004, 09:07 PM
Novice Webmaster
 
Join Date: Feb 2003
Location: Bandar Tasik Selatan, Malaysia
Posts: 25
Rep Power: 0
ngaisteve1 is on a distinguished road
Date question

My question is datepart seems can't able to detect / differenticate which one is month and day. It got confuse. I have downloaded a few cool / great calendar javascript like from Tigra and it produces this date format (dd/mm/yyyy). But when I want to save it into my Mysql field (the datatype I use is date), it will get a little confuse, sometimes the mm will become dd and vice versa.

I wonder if any of you all face before the same problem. How do you fix this problem? Changed the date input format to become format like 1 May 2004 and then convert it into dd/mm/yyyy?

The way I use datepart is
rs("order_date") = DatePart("YYYY", strOrderDate) & "/" & Right("0" & DatePart("D", strOrderDate),2) & "/" & Right("0" & DatePart("M", strOrderDate),2)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
date&time in mysql white_neck Website Programming 4 19-09-2005 05:49 PM
between 2 date meiji Website Programming 2 29-04-2005 09:44 AM
date and time hafizuddin Website Programming 7 01-12-2004 02:18 AM
Date & Time dlm website abOOn Website Design 9 29-08-2003 06:25 PM
auto date redzwan7 Website Design 0 10-07-2003 03:13 PM


All times are GMT +8. The time now is 01:23 PM. Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0 vBulletin skin by ForumMonkeys.com.


WebmasterMalaysia.com is Proudly Hosted by Exabytes Semi Dedicated Server.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61