473,385 Members | 1,764 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,385 software developers and data experts.

lowercase am / pm

Hi

I use:

todaysdatetime = FormatDateTime(Now)
to feed the date time into a variable and I get as expected something like
this:

2/28/2004 11:51:07 AM

but what I want it the am / pm markers in lower case like

2/28/2004 11:51:07 am

Would this be easy to achive ?

Regards

John Berman
jo*********@blueyonder.co.uk
Jul 19 '05 #1
3 1433
John Berman wrote on 28 feb 2004 in
microsoft.public.inetserver.asp.general:
todaysdatetime = FormatDateTime(Now)
to feed the date time into a variable and I get as expected something
like this:

2/28/2004 11:51:07 AM

but what I want it the am / pm markers in lower case like

2/28/2004 11:51:07 am

Would this be easy to achive ?


todaysdatetime = lcase(FormatDateTime(Now))

[vbscript]
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 19 '05 #2
todaysdatetime = FormatDateTime(Now)
If InstrRev(todaysdatetime, "AM") then
todaysdatetime = replace(todaysdatetime, "AM", "am")
ElseIf InstrRev(todaysdatetime, "PM") then
todaysdatetime = replace(todaysdatetime, "PM", "pm")
Else
'Nothing
End If

--
Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!

Disclaimer:
I know I'm probably wrong, I just like taking part ;o)
John Berman <Jo*********@blueyonder.co.uk> wrote in message
news:qI**************@news-binary.blueyonder.co.uk...
Hi

I use:

todaysdatetime = FormatDateTime(Now)
to feed the date time into a variable and I get as expected something like
this:

2/28/2004 11:51:07 AM

but what I want it the am / pm markers in lower case like

2/28/2004 11:51:07 am

Would this be easy to achive ?

Regards

John Berman
jo*********@blueyonder.co.uk

Jul 19 '05 #3
Thanks, works a treat
John B

"Evertjan." <ex**************@interxnl.net> wrote in message
news:Xn********************@194.109.133.29...
John Berman wrote on 28 feb 2004 in
microsoft.public.inetserver.asp.general:
todaysdatetime = FormatDateTime(Now)
to feed the date time into a variable and I get as expected something
like this:

2/28/2004 11:51:07 AM

but what I want it the am / pm markers in lower case like

2/28/2004 11:51:07 am

Would this be easy to achive ?


todaysdatetime = lcase(FormatDateTime(Now))

[vbscript]
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

Jul 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Son KwonNam | last post by:
I have some very huge(4~600MB) XML file which is in XML Native database - eXcelon. The problem is that I need to convert all the xml elements' names to lowercase. I think I could do this with...
37
by: Zombie | last post by:
Hi, what is the correct way of converting contents of a <string> to lowercase? There are no methods of <string> class to do this so I fallback on strlwr(). But the c_str() method returns a const...
4
by: Marlon R | last post by:
What is the fastest way to tell in string contains lower case letters?
2
by: Paul | last post by:
Hi, As most people who use the FileSystemWatcher know, it returns lowercase text for some strange reason. I know there's a workaround for the lowercase the FileSystemWatcher returns by by passing...
3
by: Frank van Vugt | last post by:
L.S. Either the docs or I are missing something.... While using libpq I noticed that listen/notify calls were being converted to lowercase. A further look showed that the listen/notify calls...
6
by: Krij | last post by:
Hi! I wonder: is '<SCRIPT TYPE="TEXT/JAVASCRIPT1.2">' a correct way of starting? Or should it be kept in lowercase?
2
by: evantri | last post by:
Hi everyone, I am required to write a standard C function to import the single character variable and return the lowercase version of the character int upper_to_lower ( char singlecharacter ) {...
1
by: gsreenathreddy | last post by:
Hi! <html> <head> <script type="text/javascript"> function upperCase() { var x=document.getElementById("fname").value; document.getElementById("fname").value=x.toUpperCase(); }
2
by: Bob Nelson | last post by:
Concerning program startup in a hosted environment, both C90 and C99 require that the implementation provide main's ``argv'' strings in lowercase if the host environment is not capable of supply...
9
by: Bob | last post by:
Hi, Maybe this problem has already been mentionned, but I am new to this group, so here we go. $string = "This is for ABC only" $new = (eregi_replace('ABC','<b>ABC</b>',$string)); print...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...

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.