Anyone know how to calculate age?
I tried the following formula but it doesn't work properly:
=(Today's date-Date of birth)/365.25
B2= birth date
B3= TODAY()
B4=DATEDIF(B2,B3,"D")/365.25 may be accurate enough but you might not be exactly X years old on your birthdate using this formula, there may be some trailing decimals. It will give the same result as the formula using DUR2DAYS. If your birthday was 10/8/1960 and today is 10/8/2009, the result will be 48.999315537 years old.
B4=DATEDIF("1/1/2000", TODAY(), "D")/365.25 would be another formula if you want to put the dates directly in the formula
B4=DATEDIF(B2,B3,"Y") & "Y " & DATEDIF(B2,B3,"YD") & "D" would be yet another with the result being a string.
There are other combinations you can use with DATEDIF depending on your needs.
Similar Messages
-
Does anyone know how to calculate the impedance using waveforms
does anyone know how to calculate the impedance using waveforms?
studentproject wrote:
the waveforms represent the voltage and current values across a capacitive load. I am trying to find out if there is a way to do automatic calculations using the inputs from the waveforms
Hopefully a single sinusoid tone. Otherwise things get really interesting. Also know that impedance is based on the frequency. I'll have to dig into this again. I have not had to calculate an impedance in well over 10 years.
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines -
APEX_UTIL.GET_BLOB does anyone know how to calculate the checksum?
Hi!
Does anyone know how to calculcate the checksum for the APEX_UTIL.GET_BLOB-Link?
<a href="apex_util.get_blob?s=2040766138999284&a=500&c=2963523354500419&p=7030&k1=1841200&k2=&ck=E369F782D77061F0FEAC0BB42EC5E63B&rt=IR">
<img width="30px" src="wwv_flow_file_mgr.get_file?p_security_group_id=2444012387079848&p_fname=download.png">
</a>the "ck" parameter: ck=E369F782D77061F0FEAC0BB42EC5E63B
Thx!
PS: Yes I know the APEX_UTIL.GET_BLOB_FILE_SRC-Function, but I like the easy way, that's why I am using APEX ;)What is your apex version??
DF777 wrote:
Hi!
Does anyone know how to calculcate the checksum for the APEX_UTIL.GET_BLOB-Link?Try wraping your above API call with APEX_UTIL.PREPARE_URL
http://docs.oracle.com/cd/E37097_01/doc/doc.42/e35127/apex_util.htm#CDEIBCJD
<a href="apex_util.get_blob?s=2040766138999284&a=500&c=2963523354500419&p=7030&k1=1841200&k2=&ck=E369F782D77061F0FEAC0BB42EC5E63B&rt=IR">
<img width="30px" src="wwv_flow_file_mgr.get_file?p_security_group_id=2444012387079848&p_fname=download.png">
</a>the "ck" parameter: ck=E369F782D77061F0FEAC0BB42EC5E63B
Thx!
PS: Yes I know the APEX_UTIL.GET_BLOB_FILE_SRC-Function, but I like the easy way, that's why I am using APEX ;)you mean that this api is not easy?? -
Anyone knows how to calculate Arc2D angle?
The angle in Arc2D drawing is not genuine. Anyone knows the rule?
per
http://java.sun.com/j2se/1.3/docs/api/java/awt/geom/Arc2D.html
The bounding rectangle defines the outer boundary of the full ellipse of which this arc is a partial section. The angles are specified relative to the non-square extents of the bounding rectangle such that 45 degrees always falls on the line from the center of the ellipse to the upper right corner of the bounding rectangle. As a result, if the bounding rectangle is noticeably longer along one axis than the other, the angles to the start and end of the arc segment will be skewed farther along the longer axis of the bounds.
The actual storage representation of the coordinates is left to the subclass. -
I don't know of there is anyone than can fix this age old Apple problem. Does anyone know how to retrieve apps under an old Apple ID when the email used for that account no longer exists & I can't remember the password? After speaking with Apple Acct. Security, I got the security Q right but my birthday was wrong! They wanted the serial number from my phone that was 3 iPhones ago! Seriously??!!
Any updated way to work around this? No Apple people can correct it.
Thanks,
JoeYou need to ask Apple to reset your security questions. To do this, click here and pick a method; if that page doesn't list one for your country or you're unable to call, fill out and submit this form.
(122986) -
Anyone know how to make an "Index Transparent" gif
I have successfully made transparent PNGs and GIFusing an Alpha transparency but now I need to make images which would be the same as ueing fireworks / Photoshop to make a colour transparent. i.e. indexed transparency.
Does anyone know how to do this.
My code is as follows :
// configure all of the parameters
String text = "ABC abc XYZ xyz ["+ new Date()+"]";
String font_file = "./tst/Maiandb.TTF";
font_file = request.getRealPath(font_file);
float size = 30.0f;
Color background = Color.white;
Color color = Color.black;
Font font = Font.createFont(Font.TRUETYPE_FONT, new FileInputStream(font_file));
font = font.deriveFont(size);
buffer = new java.awt.image.BufferedImage(1,1,java.awt.image.BufferedImage.TYPE_INT_RGB);
Graphics2D g2 = buffer.createGraphics();
g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
java.awt.font.FontRenderContext fc = g2.getFontRenderContext();
java.awt.geom.Rectangle2D bounds = font.getStringBounds(text,fc);
// calculate the size of the text
width = (int) bounds.getWidth();
height = (int) bounds.getHeight();
// prepare some output
buffer = new java.awt.image.BufferedImage(width, height, java.awt.image.BufferedImage.TYPE_INT_ARGB);
g2 = buffer.createGraphics();
g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
g2.setRenderingHint(RenderingHints.KEY_ALPHA_INTERPOLATION, RenderingHints.VALUE_ALPHA_INTERPOLATION_QUALITY);
g2.setFont(font);
// actually do the drawing
Color transparent = new Color(0, 0, 0, 0);
g2.setColor(transparent);
g2.fillRect(0,0,width,height);
g2.setColor(color);
g2.setComposite(AlphaComposite.SrcOver);
g2.drawString(text,0,(int)-bounds.getY());
File file = new File ("./jsp1/tst/fred1.gif");
com.gif4j.light.GifImage gifImage = new com.gif4j.light.GifImage();
com.gif4j.light.GifFrame gifFrame = new com.gif4j.light.GifFrame(buffer);
gifImage.addGifFrame(gifFrame);
GifEncoder.encode(gifImage, file);Thanks in advance^^EDIT^^
System admins updated iMac to OS X Mountain Lion (10.8.4). -
I cannot make any calls or receive calls from my iPhone after my last update. My phone advises callers I am unavailable and when I try to make calls it takes ages whilst it tries to connect then disabled itself and says call failed. Has anybody else had this problem or does anyone know how to fix it?
Hi Milrclan,
Thanks for contributing to the Apple Support Communities.
If you're not able to send or receive email from the mail accounts on your iPad after updating iOS, start with these troubleshooting tips:
Get help with Mail on iPhone, iPad, and iPod touch - Apple Support
Best Regards,
Jeremy -
Anyone know how to output an XML file from ABAP to a non sapgui location?
I have a program that creates XML and then outputs a file via CALL METHOD cl_gui_frontend_services=>gui_download. But now I want to execute the program in background mode and therefore I need to be able to output that XML to a NON sapgui file location. Current code creates the XML to an internal table which is binary then the gui_download method converts that to output XML. . Does anyone know how I can change the code to either a) output the XML to an internal table which can be output via, say, a TRANSFER command..or, b) output the created binary table of XML to a NON sapgui file location?
Excerpts from current code are as follows:
first the XML is created (to the binary file)
Creating a ixml factory
l_ixml = cl_ixml=>create( ).
Creating the dom object model
l_document = l_ixml->create_document( ).
Fill root node with value XML
l_element_xml = l_document->create_simple_element(
name = 'XML'
parent = l_document ).
Create tag 'HEADER' as child of 'XML'
l_element_header = l_document->create_simple_element(
name = 'HEADER'
parent = l_element_xml ).
header information about the file and general data about the fleet follows
l_value = c_fleet_import.
l_element_dummy = l_document->create_simple_element(
name = 'TYPE'
value = l_value
parent = l_element_header ).
etc.......
then the xml is connected to the stream factory and rendered
Creating a stream factory
l_streamfactory = l_ixml->create_stream_factory( ).
Connect internal XML table to stream factory
l_ostream = l_streamfactory->create_ostream_itable( table = l_xml_table ).
Rendering the document
l_renderer = l_ixml->create_renderer( ostream = l_ostream
document = l_document ).
l_rc = l_renderer->render( ).
Saving the XML document
l_xml_size = l_ostream->get_num_written_raw( ).
and then output to the file
IF sy-subrc = 0.
CALL METHOD cl_gui_frontend_services=>gui_download
EXPORTING
bin_filesize = l_xml_size
filename = 'g:\sapdms\BSCC-DEV\EFPAC XML Files\ALL.xml'
filename = '/TRICK/727/OUT/ZEFP/EFPAC.XML' "doesnt work with sap gui
filetype = 'BIN'
CHANGING
data_tab = l_xml_table
EXCEPTIONS
OTHERS = 24.
as implied by the comments the method above will successfully output the XML file to the g:drive but will not output to /TRICK/ location, which is where I need it to go in a background mode run.
This is a problem which has defeated all our local expertise and I would appreciate any help given... Barry JonesTry this code below:
data l_xml_table2 type table of xml_line with header line.
W_filename - This is a Path.
if w_filename(02) = '
open dataset w_filename for output in binary mode.
if sy-subrc = 0.
l_xml_table2[] = l_xml_table[].
loop at l_xml_table2.
transfer l_xml_table2 to w_filename.
endloop.
endif.
close dataset w_filename.
else.
call method cl_gui_frontend_services=>gui_download
exporting
bin_filesize = l_xml_size
filename = w_filename
filetype = 'BIN'
changing
data_tab = l_xml_table
exceptions
others = 24.
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif. -
My premiere project file size just went from 190MB to 5.61GB... and now it won't open! Anyone know how this happened? Or how to prevent it from happening again? Thankfully I saved a backup project of the 190MB file size.
warp stabiliser?
-
Does anyone know how to fix an error in cc photoshop on Win8 that says puppet warp could not complete request due to program error?
Questions on using a specific program should go in that program forum
This forum is about the Cloud as a delivery process, not about using individual programs
If you start at the Forums Index https://forums.adobe.com/welcome
You will be able to select a forum for the specific Adobe product(s) you use
Click the "down arrow" symbol on the right (where it says All communities) to open the drop down list and scroll -
Can't SEND email from Telus account in Alberta, Canada, unless I go to web mail. Does anyone know how to set up the Outgoing server? Incoming is fine. Outgoing used to work. We changed it when we went to another location, and can't get it back. Telus support can't fix it. Neither smtp.telus.net NOR mail.telus.net works for Outgoing server to send mail. Please help! Thanks.
iOS: Unable to send or receive email
http://support.apple.com/kb/TS3899
Can’t Send Emails on iPad – Troubleshooting Steps
http://ipadhelp.com/ipad-help/ipad-cant-send-emails-troubleshooting-steps/
Setting up and troubleshooting Mail
http://www.apple.com/support/ipad/assistant/mail/
Server does not allow relaying email error, fix
http://appletoolbox.com/2012/01/server-does-not-allow-relaying-email-error-fix/
Why Does My iPad Say "Cannot Connect to Server"?
http://www.ehow.co.uk/info_8693415_ipad-say-cannot-connect-server.html
iOS: 'Mailbox Locked', account is in use on another device, or prompt to re-enter POP3 password
http://support.apple.com/kb/ts2621
iPad Mail
http://www.apple.com/support/ipad/mail/
Try this first - Reset the iPad by holding down on the Sleep and Home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. (This is equivalent to rebooting your computer.)
Or this - Delete the account in Mail and then set it up again. Settings->Mail, Contacts, Calendars -> Accounts Tap on the Account, then on the red button that says Remove Account.
Cheers, Tom -
Adobe Creative Cloud (Desktop) does not work properly. The application is blocked : it could not be launch neither stopped. I'm on MAC Yosemite OS, does anyone know how to remove it properly or to force its stop. It does not appear in the launched applications.
I received no error message. The application was just trying to find applications unsuccessfully.
I am using MAC OS 10.10.1
I tried to uninstall the application but it seems that a kind of deamon is still installed thus providing me to reinstall properly. Do you know where are the elements to remove in order to get my machine just like before ?
Otherwise I would have to reinstall everything and this would be a pain.
Thanks for your help. -
My iPhone 4 no longer connects to my car or alarm clock after a recent sync to my computer. The message at I get when trying to. Connect is "this accessory is not optimized for the device" or something like that. Anyone know how to fix this?
Hello there philp_69,
If I understand correctly it sounds like your phone hasnt been recognized in iTunes on your PC since the last couple of updates. I would use the troubleshooting in the following article which will walk you through the steps one by one.
iPhone, iPad, or iPod touch not recognized in iTunes for Windows
Thank you for using Apple Support Communities.
All the very best,
Sterling -
Hi all I recently rang my service provider to complain about my
iPhone 4. Iv done this several times but they always fob me off. This time I kicked off and they told me I would have to speak to apple. I did and they told me there was nothing they could do as my phone was out of warranty.
Its really frustrated me cause it's a widely publicised issue that apple dropped a complete bollock allowing such a major flaw ever get released and then they have the cheek to use the warranty as a reason. This issue should not have anything to do with warranty as it's a fault
With every single iPhone 4 out there. There should have been a recall and the issue resolved. Im disgusted apple and I won't be buying anything from any of your products again.
Does anyone know how I can resolve this as apple want to charge me to repair even though it's there fault this issue exists?
ThanksI have taken it back to the Apple store genius bar, but they say they don't see anything wrong. Well unless you use it all day and experience the problems when they happen, you wont see anything wrong. But there are lots wrong with it. But this would be the same store as I purchased the phone. And they backed up my old Iphone 4, but were not able to get anything to load back onto my new phone. So, I lost pretty much everything. But over time, some of my contacts have started showing up, although i am still missing over 800 of them.
-
Does anyone know how to enable editing on a new computer? I only have an 8gb phone and over 4gbs of music, half of which I don't even listen to anymore. I really want it off my phone, but when I plugged it into my new macbook nothing would delete. My old computer barely turns on so I can't even plug it into the old one to delete anything. I hit the sync button on the new computer and that didn't help either. I'd really like to upgrade to the new software but don't have the room on my phone until this music/a few apps are deleted. Any help would be appreciated!!
Here are two screen shots to show you what I am seeing. The first screen shot shows it allowing me to select (highlighted in blue) my admin user (which is what I am locced in as). The second screen shot shows it allowing me to select the "Guest" user (highlighted in blue). However when I click on the user "Orion" nothing happens. It will not change to highlight that user.
Maybe you are looking for
-
To keep it really simple for you guys, my iTunes freezes when I try to open the newest version. I've let the program sit and waited to see if anything happens but nothing does. So I finally got fed up with that and I installed the oldest version I ha
-
Can't install oracle10g on windows vista
I downloaded oracle10g for windows vista & windows from oracle's site. But when I tried to install/setup.exe,error message that says install/setup.exe contains information about the folder.Use active/checkout instead. can anyone help me how to resolv
-
Unable to play back entire sequence in CS4
I'm transitioning from FCP to Premiere and am having an odd issue with a project. I cut up a clip with the razor blade tool, copied it a few times, reversed some in the speed/duration panel and arranged them in a sequence. I then rendered the entire
-
E71 corruption / installation issues
Hi all, I was playing about with the remote lock feature last night and when I turned my phone on this morning it would appear that I somehow corrupted the memory card. I reformatted the card and did a restore to factory defaults and I noticed that n
-
A prompt comes up on my TV screen when I try and purchase a movie "before you can make any purchases you must go to Itunes store on your computer and verify your account information". Have tried to do this to no avail - all my purchase and address de