Format Date function not working correctly
Hi,
I am using the following code to display a system date:
<?xdofx:sysdate('DD-Month-YYYY')?>
However the date always appears as:
18-March -2011 (with space after 'March')
rather than
18-March-2011 (no space after the month)
Can anyone tell me how to get the date to display without the space after the month?
Thanks
Some options:
http://winrichman.blogspot.com/2008/08/xslt-extended-functions.html (right side screen shot)
BI Publisher:formating date using xdofx
Modify the output from current_date
Similar Messages
-
Trunc date function not working correctly
Hi,
Another quick question if people don't mind. Bit confused about the trunc date function. I'm following the sql fundamentals exam guide and using their examples:
select trunc(to_date('02-jun-2009 13:00','dd-mon-yyyy hh24:mi')) day from dual;
this returns the 2nd of june, as it should, because, as far as i'm aware, leaving the optional variable out defaults the precision to 'day'. but when i explicitly add the variable 'day', as the guide has done with 'week' 'month' and 'year' in the following examples (so i assume this format is correct rather than dd/mon/yyyy), something goes wrong:
select trunc(to_date('02-jun-2009 13:00','dd-mon-yyyy' hh24:mi'), 'day') day from dual;
this returns the 31st of may. which is incorrect.
however replacing 'day' with 'dd' provides the correct answer of the 2nd again.
this isn't a major issue, it just bothers me that the guide seems (again) to be mistaken, something that is rapidly becoming a trend in their examples. i'd also quite like to know why this is happening, as it will help improve my understanding of sql in general - perhaps there is some sort of default to allow the correct use of the variable 'day' i'm overlooking and that the guide hasn't made clear.
btw, i'm working in sqlplus - although developer has some odd results too.
thanks alot,
nick967660 wrote:
Hi,
Another quick question if people don't mind. Bit confused about the trunc date function. I'm following the sql fundamentals exam guide and using their examples:
select trunc(to_date('02-jun-2009 13:00','dd-mon-yyyy hh24:mi')) day from dual;
this returns the 2nd of june, as it should, because, as far as i'm aware, leaving the optional variable out defaults the precision to 'day'. but when i explicitly add the variable 'day', as the guide has done with 'week' 'month' and 'year' in the following examples (so i assume this format is correct rather than dd/mon/yyyy), something goes wrong:
select trunc(to_date('02-jun-2009 13:00','dd-mon-yyyy' hh24:mi'), 'day') day from dual;
this returns the 31st of may. which is incorrect.
however replacing 'day' with 'dd' provides the correct answer of the 2nd again.
this isn't a major issue, it just bothers me that the guide seems (again) to be mistaken, something that is rapidly becoming a trend in their examples. i'd also quite like to know why this is happening, as it will help improve my understanding of sql in general - perhaps there is some sort of default to allow the correct use of the variable 'day' i'm overlooking and that the guide hasn't made clear.
btw, i'm working in sqlplus - although developer has some odd results too.
thanks alot,
nick'day' doesn't trunc to the beginning of the day. It truncates to the first day of the week: in your case 31st May.
'ddd' truncates to the beginning of the day.
So, leaving the second parameter out defaults to 'ddd' not 'day'. -
Brush function not working correctly PS Elements 11 for Mac
The brush is not working correctly in that I cannot drag the brush. It allows only spot healing, not dragging the brush. Didn't use to have this problem. Now do. Not sure what has changed. Thank you!
Is this happening after upgrading to Yosemite?
If yes, please see:
Photoshop Elements doesn't respond when you use editing tools in Mac OS X 10.10
Thanks,
Anwesha -
Standard XSLT 2.0 date functions not working in PI 7.11
What do I need to include to use the standard XSLT 2.0 functions - such as format-date, Current-date() ?
The code below works correctly in XMLSpy... but when I import the XSL as an Imported Archive in PI - it fails with...
Method fatalError called, terminate transformation, because of
javax.xml.transform.TransformerException: com.sap.engine.lib.xsl.xpath.XPathException: Function with name 'current-date' not found in context library. at com.sap.engine.lib.jaxp.TransformerImpl.transform(TransformerImpl.java:250)
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
<xsl:attribute name="today">
<xsl:value-of select="format-date(current-date(),'[Y0001][M01][D01]')"/>
</xsl:attribute>Hi,
Try to use SAP XML ttol kit option in Operation mapping and let us know the result.
Regards,
Raj -
XQuery translate() function not working correctly?
The following XQuery fragment
return
xf:translate($product/@description, "®", "®")
where
$product/@description
contains
Complete Choice® Plan
returns
Colete Choice® Pln
not, as expected
Complete Choice® Plan967660 wrote:
Hi,
Another quick question if people don't mind. Bit confused about the trunc date function. I'm following the sql fundamentals exam guide and using their examples:
select trunc(to_date('02-jun-2009 13:00','dd-mon-yyyy hh24:mi')) day from dual;
this returns the 2nd of june, as it should, because, as far as i'm aware, leaving the optional variable out defaults the precision to 'day'. but when i explicitly add the variable 'day', as the guide has done with 'week' 'month' and 'year' in the following examples (so i assume this format is correct rather than dd/mon/yyyy), something goes wrong:
select trunc(to_date('02-jun-2009 13:00','dd-mon-yyyy' hh24:mi'), 'day') day from dual;
this returns the 31st of may. which is incorrect.
however replacing 'day' with 'dd' provides the correct answer of the 2nd again.
this isn't a major issue, it just bothers me that the guide seems (again) to be mistaken, something that is rapidly becoming a trend in their examples. i'd also quite like to know why this is happening, as it will help improve my understanding of sql in general - perhaps there is some sort of default to allow the correct use of the variable 'day' i'm overlooking and that the guide hasn't made clear.
btw, i'm working in sqlplus - although developer has some odd results too.
thanks alot,
nick'day' doesn't trunc to the beginning of the day. It truncates to the first day of the week: in your case 31st May.
'ddd' truncates to the beginning of the day.
So, leaving the second parameter out defaults to 'ddd' not 'day'. -
Javascript Date() function not working
Hi,
I'm experiencing some problems with the Date() function in javascript. The problem is that the function doesn't seem to work. For example when I do "var date = new Date(); xfa.host.messageBox(date);" in the enter event of a date field, I get "Date is not a function" error message in de javascript debugger.
Is there anyone out there who knows how why the Date function is not working in LiveCycle Designer. Am I using the Date function in an improper way or maybe I am using the wrong function?
Please can anyone help me out?Hi Paul,
Thanx for you reply. It worked fine.
I also found out that following works as well:
var MyDate = util.scand("dd-mm-yyyy",new Date());
console.println("this date: "+util.printd("dd-mm-yyyy", MyDate)); -
My phone is so slow won't download any apps and data is not working correctly
I have the moto e with straight talk
Hi
This is not a Firefox thing, but there are some general housekeeping activities you can do to make your telephone run much easier.
First of all, uninstall any apps and widgets you do not need. It is amazing how they can clutter up your phone! In the app drawer, long press on an app or widget and drag it to the uninstall option at the top of the screen.
So you have a sizeable SD card in your phone? If so, in Settings app , scroll down to Storage and tap "Move media". As it says on the menu, this will move your media files to your memory card, thus freeing up space on your phone.
Before you leave Storage, scroll up a little and tap on "Cached Data" and selected to clear the cached data.
In Settings>Apps, scroll across to "On SD Card" and tick a few boxes to move some of your apps to your memory card. (Note: With some apps, this may mean that any accompanying widgets will not work, this is a bug with Android).
Once finished, turn off your phone and turn it back on again and you should find your phone has quite a bit more space and is running a bit quicker. -
Hi,
I have been searching for hours to solve this problem.
I can´t convert a date to only year, month or day etc...
select sysdate, TO_DATE(sysdate,'YYYY') from dual
ORA-01830: date format picture ends before converting entire input string
01830. 00000 - "date format picture ends before converting entire input string"
select sysdate, TO_DATE(sysdate,'MM') from dual
ORA-01843: not a valid month
01843. 00000 - "not a valid month"
select sysdate, TO_DATE(sysdate,'DD') from dual
ORA-01830: date format picture ends before converting entire input string
01830. 00000 - "date format picture ends before converting entire input string"
Please, if this is not the right category to post in just address me to the right one.
Thanks,user12981132 wrote:
Many thanks to all,
Indeed in worked on the sysdate. But I still have a similar problem. I wanted to provide an example you could reproduce on your own, that´s why I used the sysdate from dual. But my main problem is that I have a VARCHAR2(8 BYTE) data type for a date, when a try to format it to a date it returns the same error:
Ok, so because your real data is a varchar instead of a DATE, your example with sysdate was nothing like reality.
select fealta from david.socipart
returns for example: 19140731So it looks like your varchar data that represents a date is in the format yyyymmdd.
>
when I want to change it to date and get year, month, day as before it doesn´t work. And in this case I am not trying to convert the same data type:
select to_date(fealta,'yyyy') from david.socipartAnd here you try to convert your varchar to a DATE, but you are telling to_date to interpret the character string as if it were simply YYYY, which of course ends before the actual data ends .....
ORA-01830: date format picture ends before converting entire input string
01830. 00000 - "date format picture ends before converting entire input string"
... resulting in an error message that tells you that.
select to_date(fealta,'rrrr') from david.socipart
ORA-01830: date format picture ends before converting entire input string
01830. 00000 - "date format picture ends before converting entire input string"
select to_date(fealta,'mm') from david.socipart
ORA-01843: not a valid month
01843. 00000 - "not a valid month"
select to_date(fealta,'dd') from david.socipart
ORA-01830: date format picture ends before converting entire input string
01830. 00000 - "date format picture ends before converting entire input string"
But when I do this it works fine:
select to_date(fealta,'yyyymmdd') from david.socipart
1914/07/31
So, finally you gave to_date the correct description of your character string. And when you did, oracle then had to follow up with an implied use of to_char to convert the DATE back to a character string for presentation in the output. It used the controlling setting of NLS_DATE_FORMAT to do so.
* I did a alter session to change the date format to yyyy/mm/ddYour fundamental error is not understanding the difference between a DATE and a character string (VARCHAR2) the represents a DATE.
And from that misunderstanding comes a misunderstanding of the use and purpose of the to_date and to_char functions, as well as the horrible design error of using a VARCHAR column to try to store a DATE.
see: [url http://edstevensdba.wordpress.com/2011/04/07/nls_date_format/] But I want to store my date as ...
Edited by: EdStevens on May 14, 2013 10:15 AM -
Date condition not working correctly in Desktop
Hello,
I have two custom folders in Admin that are joined. One of the folders contains the following query:
SELECT ORGANIZATION_ID, ASSET_NUMBER, MIN(CURRENT_READING_DATE) FIRST_READ_DATE, MIN(CURRENT_READING) FIRST_READING
FROM EAM_METER_READINGS_V
WHERE PREV_DESC IS NULL
Group By ORGANIZATION_ID, ASSET_NUMBER
I want my workbook to report the earliest meter reading that exists, based on the date that is specified in the parameters in Desktop. When I create a parameter for the date, the workbook reports the earliest reading in the database; it ignores the date restriction entered in the parameter. This is the parameter:
First Read Date MIN BETWEEN :First Reading Date and SYSDATE
If I include the date condition in the SQL of the custom folder the workbook functions exactly as it should. The date condition is in the SQL as the following:
and current_reading_date between '01-JAN-2007' and SYSDATE
Since the workbook functions correctly when the condition is coded in the SQL but not when it is based on a parameter, I assume the problem is with the parameter. Any ideas on how I may correct this?
Thanks,
SteveThanks for the response Michael. I tried using the MIN function as you suggested, but I still am not getting the expected result. I’m not sure that I was clear in my initial problem description. I will try to provide more detail with this post.
The reason I have two custom folders is that my original query has a nested Select statement (EAMV) and I couldn’t find a way to pass the parameter from EAMV to Discoverer. Following is the original query. I suppose the first logical questions would be, is there a way to pass the parameter to Discoverer? Would this alleviate the need for the second custom folder?
SELECT K.ORGANIZATION_CODE "ORG" -- ORGANIZATION
, K.ORGANIZATION_ID
,A.NAME "PM SCHEDULE NAME" -- PREVENTIVE MAINTENANCE SCHEDULE NAME
--( (B.RUNTIME_INTERVAL/F.USER_DEFINED_RATE) + D.LAST_SERVICE_END_DATE) "PROJECTED READ DATE" -- USES USER_DEFINED_RATE FROM METER DEFINITION
,(C.LAST_SERVICE_READING + B.RUNTIME_INTERVAL) "PROJECTED READ UNITS" -- NEXT SERVICE READING DUE UNITS
,F.METER_UOM "UOM" -- UNIT OF MEASURE ON METER
,F.METER_NAME "METER NAME" -- METER NAME
,G.SERIAL_NUMBER "MAINT EQ NO" -- MAINTAINED EQUIPMENT NUMBER
,H.C_ATTRIBUTE1 "MAKE" -- MAINTAINED EQUIPMENT NUMBER - MAKE/MANUFACTURER
,H.C_ATTRIBUTE2 "MODEL" -- MAINTAINED EQUIPMENT NUMBER - MODEL
,H.C_ATTRIBUTE4 "SERIAL NO" -- MAINTAINED EQUIPMENT NUMBER - SERIAL NUMBER
,I.SEGMENT1 "ACTIVITY" -- ASSET ACTIVITY
,D.LAST_SERVICE_END_DATE "LAST READ DATE" -- DATE OF LAST PM SERVICE READING
,C.LAST_SERVICE_READING "LAST READ UNITS" -- UNITS OF LAST PM SERVICE READING
,E1.CURRENT_READING_DATE "CURRENT READ DATE" -- DATE OF CURRENT SERVICE READING (FROM METER FORM)
,E1.CURRENT_READING "CURRENT READ UNITS" -- UNITS OF CURRENT SERVICE READING (FROM METER FORM)
,E1.LIFE_TO_DATE_READING "LIFE TO DATE READING" LIFE TO DATE READING
--,(E1.CURRENT_READING - C.LAST_SERVICE_READING) "CURRENT/LAST VARIANCE" -- UNITS SINCE LAST PM SERVICE READING
,( (C.LAST_SERVICE_READING + B.RUNTIME_INTERVAL) - E1.CURRENT_READING ) "PROJECTED/CURR VARIANCE" -- UNITS REMAINING UNTIL NEXT SCHEDULED READING
,J.DESCRIPTION "LOCATION" -- OWNING DEPARTMENT DESCRIPTION OF ASSET NUMBER
,J.DEPARTMENT_CODE
,E1.DISABLE_FLAG
,G.CURRENT_STATUS
,B.RUNTIME_INTERVAL
,Y.SET_NAME
,EAMV.FIRST_READ_DATE READ_DATE
,EAMV.FIRST_READING READING
FROM EAM.EAM_PM_SCHEDULINGS A
,EAM.EAM_PM_SCHEDULING_RULES B
,EAM.EAM_PM_LAST_SERVICE C
,INV.MTL_EAM_ASSET_ACTIVITIES D
,EAM.EAM_ASSET_METERS E
,EAM.EAM_METER_READINGS E1
,EAM.EAM_METERS F
,INV.MTL_SERIAL_NUMBERS G
,INV.MTL_EAM_ASSET_ATTR_VALUES H
,INV.MTL_SYSTEM_ITEMS_B I
,BOM.BOM_DEPARTMENTS J
,INV.MTL_PARAMETERS K
,EAM.EAM_PM_SET_NAMES Y
,(SELECT ORGANIZATION_ID, ASSET_NUMBER, MIN(CURRENT_READING_DATE) FIRST_READ_DATE, MIN(LIFE_TO_DATE_READING) FIRST_READING
FROM EAM_METER_READINGS_V
WHERE CURRENT_READING_DATE BETWEEN '01-JAN-2007' AND '30-JUN-2007'
GROUP BY ORGANIZATION_ID, ASSET_NUMBER) EAMV
WHERE A.PM_SCHEDULE_ID = B.PM_SCHEDULE_ID
AND A.ACTIVITY_ASSOCIATION_ID = C.ACTIVITY_ASSOCIATION_ID
AND C.ACTIVITY_ASSOCIATION_ID = D.ACTIVITY_ASSOCIATION_ID
AND D.SERIAL_NUMBER = E.ASSET_NUMBER
AND D.ORGANIZATION_ID = E.ORGANIZATION_ID
AND E.METER_ID = E1.METER_ID
AND E1.METER_READING_ID =
(SELECT MAX(METER_READING_ID)
FROM EAM_METER_READINGS
WHERE METER_ID = E1.METER_ID
AND (DISABLE_FLAG = 'N' OR DISABLE_FLAG IS NULL))
AND E.METER_ID = C.METER_ID
AND E.METER_ID = B.METER_ID
AND E.METER_ID = F.METER_ID
AND D.MAINTENANCE_OBJECT_ID = G.GEN_OBJECT_ID
AND D.ORGANIZATION_ID = G.CURRENT_ORGANIZATION_ID
AND G.SERIAL_NUMBER = H.SERIAL_NUMBER
AND G.CURRENT_ORGANIZATION_ID = H.ORGANIZATION_ID
AND D.INVENTORY_ITEM_ID = H.INVENTORY_ITEM_ID
AND H.ATTRIBUTE_CATEGORY = 'EQUIPMENT DETAILS'
AND D.ASSET_ACTIVITY_ID = I.INVENTORY_ITEM_ID
AND D.ORGANIZATION_ID = I.ORGANIZATION_ID
AND G.OWNING_DEPARTMENT_ID = J.DEPARTMENT_ID (+)
AND I.ORGANIZATION_ID = K.ORGANIZATION_ID
AND A.SET_NAME_ID = Y.SET_NAME_ID
AND Y.SET_NAME IN ('MAIN','COMP')
AND G.CURRENT_ORGANIZATION_ID = EAMV.ORGANIZATION_ID
AND G.SERIAL_NUMBER = EAMV.ASSET_NUMBER
AND K.ORGANIZATION_CODE = 'MCC'
Using this query I want to show the most recent reading (current reading) and then give users the flexibility to enter an earlier date so the earliest reading as of that date will also show. For example, if they enter 1-JAN-2007 as the parameter and there was a reading taken on 2-JAN-07 and 28-JAN-07, the report should show the 2-JAN-2007 reading (in addition to the most recent reading in a separate column). Currently, everything on the report displays correctly, except for the reading based on the parameter. -
I downloaded a csv from google in outlook format, but when I try to read it I am getting some errors. For example if I do this:
private function completeHandler(event:Event):void {
var st:String = file.data.readUTF();
after this the st variables first to lines contain something like this
rst Name,Middle Name,Last Name,Title,Suffix,Initials,Web Page,Gender,Birthday,Anniversary,Location,Language,Internet Free Busy,Notes,E-mail Address,E-mail 2 Address,E-mail 3 Address,Primary Phone,Home Phone,Home Phone 2,Mobile Phone,Pager,Home Fax,Home Address,Home Street,Home Street 2,Home Street 3,Home Address PO Box,Home City,Home State,Home Postal Code,Home Country,Spouse,Children,Manager's Name,Assistant's Name,Referred By,Company Main Phone,Business Phone,Business Phone 2,Business Fax,Assistant's Phone,Company,Job Title,Department,Office Location,Organizational ID Number,Profession,Account,Business Address,Business Street,Business Street 2,Business Street 3,Business Address PO Box,Business City,Business State,Business Postal Code,Business Country,Other Phone,Other Fax,Other Address,Other Street,Other Street 2,Other Street 3,Other Address PO Box,Other City,Other State,Other Postal Code,Other Country,Callback,Car Phone,ISDN,Radio Phone,TTY/TDD Phone,Telex,User 1,User 2,User 3,User 4,Keywords,Mileage,Hobby,Billing Information,Directory Server,Sensitivity,Priority,Private,Categories
,,,,,,,,,,,,,,[email protected],,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,Normal,,,
where as in the csv file the actual first two lines would have been:
First Name,Middle Name,Last Name,Title,Suffix,Initials,Web Page,Gender,Birthday,Anniversary,Location,Language,Internet Free Busy,Notes,E-mail Address,E-mail 2 Address,E-mail 3 Address,Primary Phone,Home Phone,Home Phone 2,Mobile Phone,Pager,Home Fax,Home Address,Home Street,Home Street 2,Home Street 3,Home Address PO Box,Home City,Home State,Home Postal Code,Home Country,Spouse,Children,Manager's Name,Assistant's Name,Referred By,Company Main Phone,Business Phone,Business Phone 2,Business Fax,Assistant's Phone,Company,Job Title,Department,Office Location,Organizational ID Number,Profession,Account,Business Address,Business Street,Business Street 2,Business Street 3,Business Address PO Box,Business City,Business State,Business Postal Code,Business Country,Other Phone,Other Fax,Other Address,Other Street,Other Street 2,Other Street 3,Other Address PO Box,Other City,Other State,Other Postal Code,Other Country,Callback,Car Phone,ISDN,Radio Phone,TTY/TDD Phone,Telex,User 1,User 2,User 3,User 4,Keywords,Mileage,Hobby,Billing Information,Directory Server,Sensitivity,Priority,Private,Categories
,,,,,,,,,,,,,,[email protected],,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,Normal,,,
This has been bugging me for months nowJust the 1st 2 characters.
How do I read at 0 for utc bytes?
think the problem is:
Reads a UTF-8 string from the byte stream. The string is assumed to be prefixed with an unsigned short indicating the length in bytes.
regards
Nikos -
Date Function not working properly
Dear Gurus,
I have a plan app and the pertinent essbase cube, I need to retrieve the no. of days for the curr month/year combination.
On version 11.1.1.3 I used something like : @TODATE("dd-mm-yyyy",@CONCATENATE("01-01-",@NAME(@ALIAS(@CURRMBR("year"))))) / 86400;
and it worked fine.
When I moved the formula on the 11.1.2 version I get an error " invalid argument in function @_TODATE".
I know that essbase was never really good with dates.
Any help I appreciate.
yannisHi Yannis,
1. I see no reason for it not to work on 11.1.2, when it had run flawlessly on 11.1.1.3.
2. Looking at the tech reference of @TODATE, nothing seems to have changed , there is only one difference.which is the latest data supported by the function in 11.1.2 is 12-31-2037,while its 01-01-2038 in version 11.1.1.3.
3. Sounds silly, but try to validate the formula which was resulting in errors in 11.1.2 , on 11.1.1.3 once.
Sandeep Reddy Enti
HCC
http://hyperionconsultancy.com/ -
A PDF function not working correctly in Pro and Reader
Here is more information from the field staff who informed me of the issue:
As far as adding pictures to Live Cycle form.
When field personnel entering the inspection data into the form, if it opens in Reader, they cannot add a photo by clicking on the “paperclip” in the lower left of the form. The “Add” button is not there. The can add an image in the field in the form, but I cannot get it out of the form to put into the database…you cannot manipulate the image at all once it is in the field area of the form. No right click to copy, cut or delete.
In Adobe Acrobat Pro 9, you can click on the paperclip, add an image file, BUT cannot right click on file to copy elsewhere..which is what I would want to see us be able to do. I have to save the file as something else, then put it in my database…I don’t want to have to save it as something else due to our numbering system that we are using to file these…A HUGE HEADACHE..
IF I try to add an image directly to the field in the form, once it is there, you cannot right click to delete it (copy it, cut it)..you cannot get rid of it…only “replace” it with another image….not exactly user friendly if you attach a photo by mistake…
those are the issues I have with the live cycle form. we are working on trying to get the information dumped directly into a database, if there are instructions on doing that I would like to have those. It would save me a lot of time and effort.Is this a LabVIEW or a signal express question?
(You post in the LabVIEW forum but only mention signal express. There is a dedicated signalexpress forum. If this is a LabVIEW question, please explain in more detail.)
LabVIEW Champion . Do more with less code and in less time . -
Input Date does not work correctly In dynamic region
Hello everyone.
I created a view with a dynamic region. When switch to a region with Input Date components, if I click the "Choose Date" button, this region will exit to default region without any error message.
The component works well in default region but not in regions switched by Link.
I tried it in a completely new application and i am sure there is no any problem except the component and the region themselves.
SO, if someone tied doing this and know what cause it and how to fix it?
Edited by: 1007000 on 2013-5-20 下午8:49Well, i find out the problem. I set the managed bean of the region backing scope, and Input Date is a server-side component. So the taskflow id will lost when i click the Choose Date button.
change the scope to pageflow, and it works. -
Mod function not working correctly
I wrote a code to decimal to binary number system, this code works properly for 5 but show wrong result on 47. I tried lots of times but not getting solution.When "23.5 mod 2" calculated I
got the remainder 0 which is worng it should be 1.
Private Function convertor_bin_and_octal(num1 As Double, system As Byte) As String
Dim Exponent As Double, mantes As Double, num As Double, h As Byte
Dim b As String
Dim a As String
If IsNumeric(num1) = True Then
num = Int(num1)
Exponent = num1
While num >= system
Refresh
h = num Mod system
a = a & Str(h)
num = num / system
Wend
a = a & Int(num)
a = StrReverse(a)
num = num1
ma = Exponent - Int(num)
If ma <> 0 Then
While ma <> 0
ma = ma * system
b = b + Str(Int(ma))
ma = ma - Int(ma)
Wend
a = a & "." & b
End If
convertor_bin_and_octal = a
Else
Label2.Caption = "Please enter the numeric value only"
Text1 = ""
Text1.SetFocus
End IfPlease move your post to VB forum here:
https://social.msdn.microsoft.com/Forums/en-US/home?forum=vbgeneral
Fouad Roumieh -
Playlist function not working correctly
I have an Ipod nano 4th generation, it works fine in every way it is supposed to except when it come to the playlist function. When ever a song is selected from a list of songs or an artist/album list containing 10+ or so songs it does not add the selected son go to the on the go playlist on the ipod. Instead it adds a completely random song from the list with no logic to the song it picks. Does anyone else have this problem or know how to solve it? I have sent one Ipod away to be fixed but the replacement appears to have the same problem. Is this an issue with all 4th generation nanos or am I just rather unfortunate? if it is a recurring issue have apple acknowledged it/done anything about it?
Because you have uploaded the files with the iWeb FTP, the folder of files created by iWeb - southcoasttv - has been uploaded along with the index.html file. Therefore the URL has the folder name in it and this is normal.
You can change it if you want but you need to use an FTP application to upload the files rather than the whole folder....
http://www.iwebformusicians.com/WebMusic/URLs-Favicons.html
Maybe you are looking for
-
30'' Cinema Display with mini-display-port to dual link DVI adapter usb hub
Hi all, I don't know if any one of you experience this issue and can help me. I am using an unibody macbook pro (late2008 model) to connect to a 30'' cinema display via the famous $100 mini diaplay port to dual link DVI adapter. I have connected the
-
I already use iTunes for iPhone4, iPad and iPod classic. Can I add another iPhone4 now my wife has one? If I already set up an Apple ID for her, do I now need to keep the two separate or can I simply erase that Apple ID and put all devices and Itun
-
iphone 5 16 gn black my iphone is taking too long to download apps from apps to download on my iphone so please help from overcoming this problem i just want to know this is the normal behaviour or it is some kind of problem
-
Use of Synchronized in jsp/servlet
Can any one explain me the use of Synchronized in servlet/jsp which is multithreaded Is this correct synchronized should be used only when we want to pritect Static variable as they have only one copy but in case of instance variable they have sepera
-
How can I build a ragged Entity dimension with ERPi
All, I am trying to build an Entity dimension for Planning with ERP Integrator v11.1.2.1, the source is EBS 12. In the source system I am building from there is a single parent entity with six child entities, there are then 8 hierarchies of cost cent