473,404 Members | 2,114 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

date conversion

i want to convert date from MM/dd/yyyy format to dd/MM/yyyy fromat
and add 30 days to the new formatted date.
Please reply soon.
Sep 11 '06 #1
5 3903
i want to convert date from MM/dd/yyyy format to dd/MM/yyyy fromat
and add 30 days to the new formatted date.
Please reply soon.
Answer:
Hi friends this porblem solve by this way

use
dim d as date now.date()
dim ds as string
ds = format(d,"dd/MM/yyyy) // output = 24/02/2007
ds = format(d,"dd-MMM-yyyy) // output = 24-Feb-2007
Jun 26 '07 #2
gits
5,390 Expert Mod 4TB
hey ;)

you want to do this on clientside with javascript? or before displaying the dates convert it on serverside?

the above solution looks like asp.net ... and may help on serverside ...

kind regards ...
Jun 26 '07 #3
acoder
16,027 Expert Mod 8TB
i want to convert date from MM/dd/yyyy format to dd/MM/yyyy fromat
and add 30 days to the new formatted date.
Please reply soon.
This page contains some date formatting functions.

To add 30 days, just add 30 to the date (setDate to getDate+30) and the Date object will automatically rollover to the next month/year is required.
Jun 26 '07 #4
acoder
16,027 Expert Mod 8TB
Answer:
Hi friends this porblem solve by this way

use
dim d as date now.date()
dim ds as string
ds = format(d,"dd/MM/yyyy) // output = 24/02/2007
ds = format(d,"dd-MMM-yyyy) // output = 24-Feb-2007
Welcome to TSDN and thanks for sharing your solution!

Unfortunately, it seems like a vbscript type of solution instead of a Javascript one. At least it got the thread answered after a very long time!
Jun 26 '07 #5
gits
5,390 Expert Mod 4TB
... ;) i didn't saw that orig-posting-date ... wow ... that was really a long time ;)) ...
Jun 26 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: praba kar | last post by:
Dear All, I have doubt regarding date string to time conversion function. In Python I cannot find flexible date string conversion function like php strtotime. I try to use following type...
1
by: Riley DeWiley | last post by:
I have an UPDATE query that is always setting 0 records. When I cut and paste the SQL into Access and use it, it fails in the same way unless I coerce the date fields to be '=now()', in which case...
1
by: Franck | last post by:
Hi, 'm gettin mad about date conversion. Here is the point. Got and add-in for Excel which call functions from a web service (on a remote server) The remote server has regional settings set...
10
by: melissa.nava | last post by:
Here is my code: ***** Public Property DOB() As Date Get Try DOB = (msBirthMonth + "/" + msBirthDay + "/" + msBirthYear)
8
by: no_spam_for_gman | last post by:
Hi, Has anybody ever created a DB2 date function to convert a JDEdwards date to a db2 date? Example: September 28 is 106271 in JDEdwards.
44
by: user | last post by:
Hi, Let's say I have 2 dates in the b/m format: Date 1 and date 2 How do I check whether Date2 is later than Date 1? Date1. 21-Nov-2006 09:00:00 PM
10
by: =?Utf-8?B?TWlrZQ==?= | last post by:
I have a string variable containing a date formatted as YYYYMMDD For example - Dim x as string = "20070314" If I try to perform a type conversion as follows I get an error: Dim y as Date =...
1
by: vadala | last post by:
The requirement is to send start data and end date from java to UI (.net) for a functionality. We are setting the time in java (1.5) before handing it over to WebService (sending to UI ) in...
7
by: bruce.dodds | last post by:
Access seems to be handling a date string conversion inconsistently in an append query. The query converts a YYYYMM string into a date, using the following function: CDate(Right(,2) & "/1/" &...
2
by: RN1 | last post by:
A TextBox displays the current date (in dd/mm/yyyy format) & time when a user comes to a page (e.g. 15/10/2008 1:36:39 PM). To convert the date into international format so that the remote server...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.