hi,
is there anyway that I can validate my date format in asp?? I have
tried like date=now(), that gives me like 5/14/2004, the format should
be mmddyy, no space, no dash, and has to include 0 if month is from
1-9, for example 01, 02, like that????
please help me out
thanks in advance
Wei 1 2420
Function FormatMyDate(dt mDate)
FormatMyDate = "Error"
If IsDate(dtmDate) Then
FormatMyDate = Right("00" & Month(dtmDate), 2) & Right("00" &
Day(dtmDate),2) & Right(Year(dtmD ate),2)
End If
End Functon
'from dlbjr
'Discerning resolutions for the alms This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Scott Knapp |
last post by:
Good Day -
I have a form which sets the current date, as follows:
<script type="text/javascript">
xx=new Date()
dd=xx.getDate()
mm=xx.getMonth()+1
yy=xx.getYear()
mmddyy=mm+"/"+dd+"/"+yy
document.write(mmddyy)
|
by: faktujaa |
last post by:
Hi,
I have date in a string format like string strDate = "110204".
Now i want to convert this string to MM/dd/yyyy format. How do i do this????
I used string.Format(strDate, "MM/dd/yyyy") but no effect. I guess i have to
convert this to date and than to string(MM/dd/yyyy). Please help.
Thanks in advance.
faktujaa
|
by: weiwei |
last post by:
hi,
is there anyway that I can validate my date format in javascript?? the
format should be mmddyy, no space, no dash, and has to include 0 if
month is from 1-9, for example 01, 02, like that????
please help me out
thanks in advance
Wei
|
by: david liu |
last post by:
i have a date (in date/time format with input mask) in access 2002.
field date: 01/01/1970
what i want: 010170 (i.e. mmddyy)
i used:
DatePart("m",) + DatePart("d",) +
right(DatePart("yyyy",), 2)
and i get: 1170
|
by: Mo Ka |
last post by:
Hi all,
Is there a function (or other method) to automatically append the system
date to the output tablename of a make table query such that the new one
does not overwrite an older table?.
I need these for stats but want to keep all previous tables created by
the same query and I do not want the user to have to enter the date the
table was created.
| |
by: fniles |
last post by:
How do you do Format(Date, "mmddyy") in VB.NET ?
Thank you
|
by: Gordon |
last post by:
Hi;
I would like to format a date like this this mmddyy.
I am reading records from a table using the ado.net reader
The dates vary in their length i.e. the day can be either one or two digits
and
the same is true for the month.
|
by: Steve Cartnal |
last post by:
I have tried every function that seemed applicable and can't seem to convert
a simple text field containing numbers, for example "022807", into a date.
Nor can I do the reverse and convert a date field into text, like 02/28/07
into text "022807". Can anyone help?
|
by: Brian Parker |
last post by:
I am beginning to work with VB2005.NET and I'm getting some problems
with string formatting converting an application from VB6.
VB6 code:-
sTradeDate = Format(pArray(4,i Record), "mmddyy")
pArray is a variant array containing a date string at pArray(4,
iRecord) in the format "yyyy/mm/dd"
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |