12 Topics

Member Avatar for
Member Avatar for markdean1989

I am an aspiring (at the age of 27) programmer using C++. I have future undertakings including getting a refresher course at a premier University in my country. I am just interested to know in advance how it is to become a programmer. What are the regular routines that you …

Member Avatar for markdean1989
0
300
Member Avatar for saurabh.mehta.33234

While referring to a particular course I came across the following code to retrieve the current day: int julianStartDay = Time.getJulianDay(System.currentTimeMillis(), dayTime.gmtoff); long dateTime; dateTime = dayTime.setJulianDay(julianStartDay); day = getReadableDateString(dateTime); private String getReadableDateString(long time){ SimpleDateFormat shortenedDateFormat = new SimpleDateFormat("E MMM d"); return shortenedDateFormat.format(time); } My doubt is why are we …

Member Avatar for Taywin
0
377
Member Avatar for reiferdinan.picar

We need it tomorrow, the code for the assignment #3 and #4 question. There was no continuation. Date Class Project (part #3) Add the following data items to your Date class 05 points 1. int dayOfYear 2. String monthName 3. String dayOfWeek Add the following methods to your Date class …

Member Avatar for stultuske
0
319
Member Avatar for Start4me

I'm trying to have the following output of the program: 01/01/2010 But when I run the program I get : 01/01/10 How would I format the date to be like I want? This is the code I have: import java.util.Calendar; import java.util.GregorianCalendar; public class HelloWorld{ public static void main(String []args){ …

Member Avatar for JamesCherrill
0
335
Member Avatar for zacharysr

On my search page [URL="http://daparadise.com/search.php"]http://daparadise.com/search.php[/URL] i want to make the logo auto change when a certain day comes up. Say like christmas. our a birthday or something like that. So how would i make the logo change in php when these days come up?

Member Avatar for diafol
0
242
Member Avatar for patk570

Hi Guys, I would like to highlight the current day on this php script, can you help me figure out a simple way to do this? <?php $monthNames = Array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"); if (!isset($_GET["m"])) $_GET["m"] = date("n"); if (!isset($_GET["y"])) $_GET["y"] = …

Member Avatar for diafol
0
340
Member Avatar for vegaseat

So you want to find out which day of the week you were born. Well at least some of us do. I actually wrote this program because my whole family was born on Sundays, and my friends didn't believe it! An oldie but goodie, moved from DeSmet C to Turbo …

Member Avatar for 1baga
3
2K
Member Avatar for LastMitch

Hi I want to create a simple calendar on Smarty. I attached an image on how it looks so far. Here is my code **calendar.php** file: <?php require("libs/Smarty.class.php"); $smarty = new Smarty(); $date = "1/01/2013"; //January 01, 2013 $week_days = array("Sun"=>1, "Mon"=>2, "Tue"=>3, "Wed"=>4, "Thu"=>5, "Fri"=>6, "Sat"=>7); $total_day_of_month = get_total_day($date); …

Member Avatar for LastMitch
0
563
Member Avatar for djokerfan20

Hi everyone! This is the code that I have made, however, when I enter a date for example if I type : 12/12/2012 then the date for tomorrow displays a list of dates. I am unsure how to get it to only display the date of tomorrow. #include <stdio.h> int …

Member Avatar for djokerfan20
0
243
Member Avatar for bbman

Hey everyone, I have the following varaibles: $_POST['month'] $_POST['day'] $_POST['year'] I need them to be put into a string format such as '2012-02-15' (Year-Month-Day). Could someone please help me do this in php? I've tried a few times but can't connect them with the "-" successfully. Thanks for your help.

Member Avatar for bbman
0
169
Member Avatar for unika010690

ive already get the previous date but i dont know how can skip the weekend date.. example,,i run the application on monday the generated data must be the date on friday,,it must skip tsaturday and sunday,,i cant find similar problem in net,,plllzzz help...

0
145
Member Avatar for TrustyTony

This code determines if datetime object represent first workday of month, but it does not consider the special days like New Year (this year weekend but last year Friday). Reaction to Basic efforts in: [url]http://www.daniweb.com/software-development/legacy-and-other-languages/threads/362098[/url] There algorithm idea given by [URL="http://www.daniweb.com/members/jonkiparsky/775324"]jon.kiparsky[/URL] based docstring says 'workday' when it should be 'weekday': …

Member Avatar for TrustyTony
1
4K

The End.